When you press add to cart after YITH AJAX load categories add to cart request is not AJAX and page is reloading and redirecting. In console you can see error. I have the same bug with your plugin in 10 other websites. But if you don’t press YITH categories, add to cart is working with AJAX. To see the bug you need to load this page for example: https://beautycity.lt/produkto-kategorija/plauku-prieziurai/kondicionieriai-plaukams/?yith_wcan=1&product_tag=eleven-australia&product_cat=kondicionieriai-plaukams and press any other category on the left, and the add to cart AJAX will stop working. AJAX add to cart starts working only if you reload the page. So if you open this link and try add to cart it will be working, but if you choose another category in the left add to cart AJAX will be not working since you clicked, but if you press reload page it starts working. And also your other plugin stops working – YITH wish list – because of product filter errors.
In other website i fixed this bug with this code:
if( ! function_exists( ‘yith_wcan_content_selector’ ) ){ function yith_wcan_content_selector( $selector ){ $selector = ‘.elementor-location-archive.product’; return $selector; } add_filter( ‘yith_wcan_content_selector’, ‘yith_wcan_content_selector’ ); }
But this code does not help on this website, I tried to add other css classes and change them in the code, but nothing changes.
Console errors show only if you press on YITH product filter category and you are connected with admin, but if you reload the page console doesn’t show error – you need to press another category and it shows again:
frontend.min.js?ver=3.18.3:2 Uncaught TypeError: Cannot read properties of undefined (reading ‘handlers’)
at 3515 (frontend.min.js?ver=3.18.3:2:4476)
at webpack_require (:2:150)
at 4774 (frontend.min.js?ver=3.18.3:2:4130)
at webpack_require (:2:150)
at 2 (frontend.min.js?ver=3.18.3:2:137)
at webpack_require (:2:150)
at frontend.min.js?ver=3.18.3:2:25088
at webpackJsonpCallback (:2:5466)
at Array.forEach ()
at :2:5677
-
This reply was modified 10 months ago by aidasj7.
-
This reply was modified 10 months ago by aidasj7.
-
This reply was modified 10 months ago by aidasj7.