AJAX Calls – How to enable
-
Hello,
I have searched extensively through the support posts and your FAQ and the question of how to get a plugin working with regards to AJAX pops up frequently, there’s this whole part in the FAQ for it –
I have disabled a form plugin globally and enabled it on a specific page where it is used. The plugin loads on the page but then it doesn’t work when I submit the form. When the form is submitted it is not submitting to the page you are viewing. It is submitting to an ajax endpoint. Which is a different URL. You need to enable the plugin on that URL to get the form working. Here are 2 examples of how to do that.
We’re trying to get the payment gateways working only on the checkout and cart pages however this seems more challenging than first anticipated.
I’ve now tried multiple fixes and am aware that we need to create a global filter with the payment plugins switched off, then create another filter on the checkout and cart pages with both gateways enabled.
I know that I need to also add a filter with the plugins enabled to wherever the AJAX endpoint is however I cannot find any clear way to identify this. I’ve tried the homepage, various folders, attempted to locate the /wp-json/ endpoint and no one seems to have a definitive answer on what actually needs to be enabled for various plugins, considering that they all have different requirements.
We are using ‘WooCommerce Stripe Gateway’ by WooCommerce and ‘WooCommerce PayPal Gateway’ by easypayment if this helps.
Any help would be hugely appreciated as I’ve been trying to get an answer on this for days now and the payment gateways are terrible with regards to requests and load times.
- The topic ‘AJAX Calls – How to enable’ is closed to new replies.