Title: Side cart appears empty
Last modified: April 27, 2020

---

# Side cart appears empty

 *  [starplayer](https://wordpress.org/support/users/starplayer/)
 * (@starplayer)
 * [6 years ago](https://wordpress.org/support/topic/side-cart-appears-empty-2/)
 * Hi.
    When you add a product, the cart appears correctly. But if you go to other
   page, and then open the basket, it appears all white, with no content. What gives,
   any ideas?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fside-cart-appears-empty-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [xootix](https://wordpress.org/support/users/xootix/)
 * (@xootix)
 * [6 years ago](https://wordpress.org/support/topic/side-cart-appears-empty-2/#post-12737185)
 * Hello [@starplayer](https://wordpress.org/support/users/starplayer/)
 * Make sure your cart-fragments.js is enabled.
    Check your functions.php if you
   have disabled it somewhere.
 *  Thread Starter [starplayer](https://wordpress.org/support/users/starplayer/)
 * (@starplayer)
 * [6 years ago](https://wordpress.org/support/topic/side-cart-appears-empty-2/#post-12738525)
 * 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?
 *  Thread Starter [starplayer](https://wordpress.org/support/users/starplayer/)
 * (@starplayer)
 * [6 years ago](https://wordpress.org/support/topic/side-cart-appears-empty-2/#post-12744698)
 * 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](https://wordpress.org/support/users/xootix/)
 * (@xootix)
 * [6 years ago](https://wordpress.org/support/topic/side-cart-appears-empty-2/#post-12745841)
 * Hello [@starplayer](https://wordpress.org/support/users/starplayer/)
 * The issue is with the cart-fragments request.
    Though it is not disabled on your
   site, however the request is getting cancelled. [Screenshot](https://i.imgur.com/Cmu58vd.png)
   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.
 *  Thread Starter [starplayer](https://wordpress.org/support/users/starplayer/)
 * (@starplayer)
 * [6 years ago](https://wordpress.org/support/topic/side-cart-appears-empty-2/#post-12747768)
 * 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.
 *  Thread Starter [starplayer](https://wordpress.org/support/users/starplayer/)
 * (@starplayer)
 * [6 years ago](https://wordpress.org/support/topic/side-cart-appears-empty-2/#post-12747791)
 * 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](https://wordpress.org/support/users/starplayer/).

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Side cart appears empty’ is closed to new replies.

 * ![](https://ps.w.org/side-cart-woocommerce/assets/icon-256x256.gif?rev=3217170)
 * [Side Cart Woocommerce | Woocommerce Cart](https://wordpress.org/plugins/side-cart-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/side-cart-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/side-cart-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/side-cart-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/side-cart-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/side-cart-woocommerce/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [starplayer](https://wordpress.org/support/users/starplayer/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/side-cart-appears-empty-2/#post-12747791)
 * Status: not resolved