WAIT: WooCommerce loop "Select options" tries to add to cart via ajax instead of sending user to the product

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.

Hello @mindpattern,

I tried to reproduce this locally, but I couldn’t. In the product loop, I’ve clicked on the “Select options” button, and I’m redirected to the single product page. I have Ajax add-to-cart enabled.

Can you try first by disabling all other plugins, and keeping only WooCommerce and Bricks active?

If it’s still happening then, can you send temporary login credentials to your test/staging website and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase, so we can take a look?

Thanks,
Matej

As per our other thread this issue has been identified and Bricks support have provided a temporary fix in my theme until the bug is officially fixed. Thanks for your help.