Always empty mini-cart solution with HIT LSCache and Swift Performance cache
-
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.
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
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.