0
votes

I want to add ajax functionality to add to cart button on single product pages on woocommerce shop, on archive pages it does ajax, but on single product pages it doesnt, I believe this is the default behavior but is there a way to achieve my goal? been binging and googling with no luck.

1
Is there any updated on this?Mehul Kaklotar
As I have answered below, this isn't possible for the mean time, check the links on my answer below for more info.Jplus2
Yes. There is no option for it to it with woocommerce admin. We can do it by calling jQuery function of AJAX addtocart button in our own plugin or theme.Mehul Kaklotar

1 Answers

3
votes

For the time being this isn't possible specially for variable or non simple products

References:

https://github.com/woothemes/woocommerce/issues/2353
https://github.com/woothemes/woocommerce/issues/5039
https://github.com/woothemes/woocommerce/wiki/Roadmap