Basel: frozen "Add to Cart" button
-
Hi Elise,
please help! due to some update, the “Add to cart” button is freezing. You press it, and the spinning wheel continues forever. The product is added to cart, but nothing happens. It happens on every WooCommerce Single Product page. In Chrome, I am seeing this error: Uncaught ReferenceError: wc_add_to_cart_params is not defined
https://ibb.co/yk84CHf
Example page:
https://www.independent.wine/product/francone-barolo-2016-barolo-docg-decanter-silver-medal/
Here is the code from Chrome -> Inspect Element ->
Uncaught ReferenceError: wc_add_to_cart_params is not defined
at Object.success (functions.min.js?ver=5.1.12:1)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at x (jquery.js?ver=1.12.4-wp:4)
at XMLHttpRequest.c (jquery.js?ver=1.12.4-wp:4)
Note: I changed “Add to Cart” to “Buy now” in Loco translate, so this is only text difference.
Hello,
Please deactivate all the plugins not related to the theme and switch the parent theme, check the issue, then activate the plugins one by one to detect which one causes the problem.
Best Regards
Elise,
this problem was related to WooCommerce, not to the theme.
I had a developer to restore the ajax code for Woo, it is back to normal.
Thanks for your response
Oleg
You are welcome! If you have any questions please feel free to contact us.
Best Regards