Plugin Author
xootix
(@xootix)
Hello @starplayer
Make sure your cart-fragments.js is enabled.
Check your functions.php if you have disabled it somewhere.
Thanks for your answer.
Ajax add to cart is enabled in the woocommerce settings, and there’s no code in functions.php. I even changed themes just to check and the issue still stands.
Any other ideas?
So, I’ve noticed that in this code:
if(toggle_type == ‘show’){
toggle_element.addClass(toggle_class);
}
else if(toggle_type == ‘hide’){
toggle_element.removeClass(toggle_class);
}
else{
toggle_element.toggleClass(‘xoo-wsc-active’);
When the cart appears all white, it’s the third statement that gets triggered, because toggle_type is neither show or hide. This causes the cart not to load.
Now, where does this come from…
Plugin Author
xootix
(@xootix)
Hello @starplayer
The issue is with the cart-fragments request.
Though it is not disabled on your site, however the request is getting cancelled.
Screenshot
Look for plugins which do the optimization & deactivate them.
Or you may deactivate all other plugins at once & start re activating them one by one until the issue shows up again.
Thank you very much.
Indeed, I narrowed it down to WPML Multilingual CMS.
Now I still have to figure what the hell is happening. I’ll post here when I find out.
Found it
I had to enable, in WPML:
Language filtering for AJAX operations
Store a language cookie to support language filtering for AJAX
Now it works.
Thank you very much, have a good one, I’m going to have a beer.
-
This reply was modified 6 years ago by
starplayer.