• Resolved emersongodoy

    (@emersongodoy)


    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)

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

    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

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter emersongodoy

    (@emersongodoy)

    function enqueue_wc_cart_fragments() { wp_enqueue_script( 'wc-cart-fragments' ); }
    add_action( 'wp_enqueue_scripts', 'enqueue_wc_cart_fragments' );
    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hi @emersongodoy ,

    Thanks for sharing what has worked for you in this regard. This may be very helpful for other experiencing this same issue, looking for a fix ??

    Since no support is required on this thread, I’ll go ahead and mark this as resolved.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Always empty mini-cart solution with HIT LSCache and Swift Performance cache’ is closed to new replies.