Hi there. I want ajax add to cart enabled on single product pages. It seems to work fine there, even with product options. But when I view products in a product loop (using the Products element) and see “Select options” on a product and click on it - it’s trying to add via ajax and producing an error. Other WooCommerce themes I’ve used send the user to the product page in this situation, which makes perfect sense.
I have “Enable AJAX add to cart buttons on archives” turned off in WooCommerce (the plugin)
How can I keep ajax add to cart on single product pages and not get this broken behaviour in the product loop?
The broken behaviour I am experiencing:
- I view product loop
- I click on “Select options” on a product
- The button instantly changes to say “Adding” and then redirects to that product page where I see error notice “Error adding product to cart.”
Expected behaviour:
- I click on “Selected options” and it takes me to that product page with no error messages.