Home Forums WoodMart support forum "NO PRODUCTS IN THE CART " after Add to Cart Reply To: "NO PRODUCTS IN THE CART " after Add to Cart

#58438

mazs91
Participant

Hi Support,

It seems like a caching problem. I am using Wp Rocket. Please check the below links.

https://wp-rocket.me/blog/using-woocommerce-dynamic-cart-wp-rocket/
“Recently, however, I ran into a little problem with the mini cart that WooCommerce offers and that you can use, for example, in your webshop header. The mini cart was not Ajax-ed, so the content was being cached and sometimes made it look like you didn’t have any items in your cart even when you did. By reaching out via Twitter I found out that the only way to solve this correctly was by retrieving this mini cart via WP AJAX. Since I promised the helpful team at WP Rocket a write up, I’ll tell you how I did this.”