• starplayer

    (@starplayer)


    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 to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author xootix

    (@xootix)

    Hello @starplayer

    Make sure your cart-fragments.js is enabled.
    Check your functions.php if you have disabled it somewhere.

    Thread Starter starplayer

    (@starplayer)

    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

    (@starplayer)

    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.

    Thread Starter starplayer

    (@starplayer)

    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

    (@starplayer)

    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.
Viewing 6 replies - 1 through 6 (of 6 total)

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