Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey, katelss, I’m another WooCommerce user.

    I’d recommend making a staging version of your site and changing your theme and have WooCommerce still enabled to see if the shopping cart issue get resolved; if so, this means this is a theme issue.

    Thread Starter katelss

    (@katelss)

    ok thanks so much. You don’t have a link for a tutorial for building a staging site do you please? My web designer is a friend who is currently on maternity leave and I don’t want to bother her.

    For those who are having problems with the mini cart always empty with the cache in “HIT”, below is the solution I found:

    As per the Woocommerce explanation, they have removed wc-cart-fragments to increase the performance. If you are using elementor, I believe now it’s up to elementor to get a fix. I saw elementor mentioned on GIT that they would give a fix with the 3.14.0 release. Until that, the below code will fix the issue.

    Add this code to the function.php in the child theme or main theme (if you do not use a child theme)

    function enqueue_wc_cart_fragments() { wp_enqueue_script( 'wc-cart-fragments' ); }
    add_action( 'wp_enqueue_scripts', 'enqueue_wc_cart_fragments' );

    I use the LSCache and Swift Performance plugins.

    Source: https://stackoverflow.com/questions/76495561/woocommerce-mini-cart-is-coming-blank-on-add-to-cart-from-product-page

    • This reply was modified 1 year, 4 months ago by emersongodoy.
    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hi @katelss ,

    Thanks for reaching out!

    I understand that the mini cart is showing a blank purple box, is this correct?

    After checking your site, I am unable to replicate the issue, as the cart drawer opens with the items I have added to the cart:

    Have you managed to resolve the issue, or are you seeing something different on your end?

    If your results differ from mine, please can you try clearing your browser cache, or viewing your site in private/incognito mode, and see if this makes any difference?

    You don’t have a link for a tutorial for building a staging site do you please? My web designer is a friend who is currently on maternity leave and I don’t want to bother her.

    You can create a staging site using a plugin called?WP Staging. The plugin page has a video tutorial for how this can be done using this plugin.

    Alternatively, you can try using the free Health Check plugin. This will allow you to switch the theme and deactivate plugins, without affecting normal visitors to your site.

    Cheers!

    Thread Starter katelss

    (@katelss)

    emersongodoy you absolute beauty. I put in that code and its now working. thank you, thank you, thank you

    Thread Starter katelss

    (@katelss)

    @beautyofcode thats so weird that you could see it, i tried on multiple devices and on multiple different browsers and I could never see it, my customers were also complaining they couldnt access it either. Nevermind its sorted now. thanks so much for replying though, have a lovely day

    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hi @katelss ,

    Glad to hear that the issue is no longer preent!

    Since this has been resolved, feel free to create a new topic if you need further help.

    Cheers!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Shopping cart not showing’ is closed to new replies.