AJAX Add to cart not working in products listings / shop page
I've created my products listings page how I want it, it has an add to cart button, but the add to cart button redirects to the cart or product page. I want it to add to cart via AJAX. It works as I want with the standard woocom shop page, with AJAX, but I can't edit this with brizy.
-
Hello Daniel!
Please check the WooCommerce settings and make sure Ajax is enabled
Also, 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 -
Hi Mihail, thanks for the help!
I can confirm I have both the ajax checkbox enabled and the woo-ajax... plugin installed, but no difference! Do you have any other suggestions?
Also, I wonder whether I'm using it correctly. I can't find much information about how to actually use brizy e-commerce features. Can you point me to something that might be able to explain how to use the templates and override the default woocom pages?
Thanks!
0 -
Hello Daniel!
I can provide you few Articles:
https://support.brizy.io/hc/en-us/articles/360043778252-WooCommerce-Pages
https://support.brizy.io/hc/en-us/articles/360044224691-WooCommerce-Categories
https://support.brizy.io/hc/en-us/articles/360044224651-WooCommerce-Products
https://support.brizy.io/hc/en-us/articles/360043777432-WooCommerce-Product
Here are general instructions, so I hope they help you.
Kind regards,
Mihail
0 -
Hi, thanks for providing these!
I am just wondering, is this the behaviour expected within the Brizy builder? I.E. is the Brizy add to cart button even supposed to update the cart via AJAX?
I made a short video demonstrating the problem: https://www.loom.com/share/2260b563e4284648831831a637ef5efd
If the AJAX functionality isn't built into the Brizy add to cart button, I will instead just make the button using JS and the Woocom API
Thanks so much for the help!
0 -
Hello Daniel.
Not for Woocommerce. Usually, this functionality is added by theme or external plugins. We just keep base functionality and compatibility.
Kind regards,
Mihail
0
Please sign in to leave a comment.
Comments
5 comments