Unfortunately, the current version of our plugin can only be enabled for the whole site, not for specific products or categories. In order to enable/disable for individual products, it requires pretty much customization in the code files of our plugin, which makes it hard to be done for us at the moment.
Would it be possible for you to add an additional css selector to this line in the plugin, something like .no-ajax and then I can add that as a class to my button with jQuery which should prevent the ajax from working?
I have transferred your code snippet to our developers and they responded that this cannot be added to our plugin since we have created this to assist users on sites that need AJAX Add to Cart. This plugin also complements other WPC plugins. I'm not a technical staff so I can't give you a more detailed explanation, our developers just said this would affect other users. Unfortunately, we hate to say it, but we have to decline your request on this.
Is it possible to disable ajax add to cart for specific products or categories.
Hi Olly,
Thanks for contacting us here.
Unfortunately, the current version of our plugin can only be enabled for the whole site, not for specific products or categories. In order to enable/disable for individual products, it requires pretty much customization in the code files of our plugin, which makes it hard to be done for us at the moment.
Best regards.
Janilyn T. - WPClever Support Agent
Would it be possible for you to add an additional css selector to this line in the plugin, something like .no-ajax and then I can add that as a class to my button with jQuery which should prevent the ajax from working?
$(document).
on('click',
'.single_add_to_cart_button:not(.disabled, .wooco-disabled, .woosb-disabled, .woobt-disabled, .woosg-disabled, .woofs-disabled)',
function(e) {
Hi Olly,
I have transferred your code snippet to our developers and they responded that this cannot be added to our plugin since we have created this to assist users on sites that need AJAX Add to Cart. This plugin also complements other WPC plugins. I'm not a technical staff so I can't give you a more detailed explanation, our developers just said this would affect other users. Unfortunately, we hate to say it, but we have to decline your request on this.
Best regards.
Janilyn T. - WPClever Support Agent
If you added a css selector like .wpc-disable-ajax-add-to-cart i'm not sure how that would affect other users.