Ajax add to cart problem with woocommerce_add_to_cart hook
-
I’m notice that when i add to cart product from shop page and ajax add to cart is enabled it is impossible to use woocommerce_add_to_cart hook. I’m using this hook in my plugin to send some data to external server when add to cart event happens. But looks that using this hook causes problems for add to cart via ajax. When i click on add to cart button it is showing permanent loader on this button. I know that problem is directly in using this hook, because when i don’t use it add to cart via ajax works ok. Please notice that i do this on clean wordpress installation using default Storefront theme and set of default test products. So i’m confused how i could avoid such troubles. Is is any alternative hooks which triggers after add to cart even. Does add to cart via ajax has another hook?
The page I need help with: [log in to see the link]
- The topic ‘Ajax add to cart problem with woocommerce_add_to_cart hook’ is closed to new replies.