Woocommerce Checkout JS not loading on the Cart/Checkout Page
-
This makes the “SHIP TO A DIFFERENT ADDRESS?” section permanently open and also tripple billed customers upon testing.
Checkout page throws this error on the checkout page:
checkout.min.js?ver=4.5.2:1 Uncaught TypeError: Cannot read property ‘defaults’ of undefined
at HTMLDocument.<anonymous> (checkout.min.js?ver=4.5.2:1)
at i (VM29019 jquery.min.js:2)
at Object.fireWith [as resolveWith] (VM29019 jquery.min.js:2)
at Function.ready (VM29019 jquery.min.js:2)
at HTMLDocument.K (VM29019 jquery.min.js:2)
Kindly help look into this.
Hello,
Please make the full backup of your site as well as the Theme settings export and check the issue on the Storefront theme to detect if our theme causes the problem. Storefront is a free theme developed by Woocommerce.
Best Regards
The error disappears with storefront , twentytwenty and just about any other theme
I just deactivated and tested all the installed plugins individually and found out that, Litespeed Cache plugin is the culprit. As it so happens, it’s one of the most indispensable plugin (the webserver is OpenliteSpeed). It’s probably a settings error. I didn’t change anything recently and i’m not just using it together for the first time. Any suggestions ?
In this case, you need to refer to plugin’s documentation or contact their support team. It has to be fully compatible with the WooCommerce plugin.