AJAX Add to Cart not working on single product page
Hey there,
I have created single product pages in Woocommerce using Brizy templates but when someone clicks Add to Cart, the AJAX functionality is not working, it instead refreshes and loads the page again. How can I fix this?
-
Hello, Alex!
Sorry for the delay.
The AJAX "add to cart" functionality is not a base for WooCommerce on a single product page. And if You will check your product "add to cart" button without the Brizy template, you will see that it is the default way how "add to cart" functionality works.
At this moment, You can try to find an additional plugin for your needs, for example, this one: https://wordpress.org/plugins/woo-ajax-add-to-cart/Kind regards,
Mihail0 -
Hey there,
My Theme, Blocksy has built in support for AJAX add to cart for single products. So it should be working as I have the setting turned on, but its not.
0 -
Hello!
AJAX add to cart for single products of Blocksy will work for standard WooCommerce templates. If a single product page is created by some Page Builder (Brizy or Elementor) the AJAX functionality is not applied to this page.
Kind regards,
Mihail
0 -
I actually did figure out how to get it to work with Brizy created templates. You have to write: ct-ajax-add-to-cart in the advanced settings under CSS Class. Then it will work.
2
Please sign in to leave a comment.
Comments
4 comments