ChrisColeman Posted September 14, 2023 Share Posted September 14, 2023 (edited) I am developing a plugin, which typically handles a lot of AJAX calls. Although it does work successfully I feel that there's probably a better way .. Is there a way to invoke an AJAX hook, this would be, I imagine a specific KEY on the POSTed AJAX URI ? Many Thanks, Chris Coleman. Edited September 14, 2023 by ChrisColeman Quote Link to comment Share on other sites More sharing options...
bsmither Posted September 15, 2023 Share Posted September 15, 2023 You are saying that your plugin adds to CubeCart's router? Or does it add to CubeCart's query listener? The router delivers a whole page, the listener responds with either a JSON string or HTML snippet. (There is also a do-something listener that is not meant to return anything.) Quote Link to comment Share on other sites More sharing options...
ChrisColeman Posted September 15, 2023 Author Share Posted September 15, 2023 (edited) Hi, Yes, got it. Thank You, Chris. Edited September 18, 2023 by ChrisColeman Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.