Bugfix for cart
-
Hi, I report my experience with the plugin.
I’m using WordPress 6.4.3?with Woocommerce 8.7.0, with a self-developer theme, plus other plugins.
I noticed that YITH WooCommerce Product Add-Ons works fine, except in cart page. In my website, users get a javascript error everytime they update cart (eg after changing items quantity or adding coupon code).
‘Uncaught TypeError: t.addClass(…).block is not a function’ on cart.min.js
I fixed it changing wp-content/plugins/yith-woocommerce-product-add-ons/includes/class-yith-wapo-front.php:148wp_register_script('yith_wapo_front', YITH_WAPO_URL . 'assets/js/front' . $suffix . '.js', array('jquery', 'jquery-ui-datepicker', 'jquery-ui-progressbar', 'wc-add-to-cart-variation', 'jquery-blockui'), defined('YITH_WAPO_SCRIPT_VERSION') ? YITH_WAPO_SCRIPT_VERSION : YITH_WAPO_VERSION, array( 'strategy' => 'defer' ) );
Can you tell me how to fix without changing plugin core code?
Thank you very much!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Bugfix for cart’ is closed to new replies.