Problems in the mini CART header of woocommerce due to varnish


#1

Hi guys.

I state that I have included the following exclusions in the “Varnish Setting”:

COOKIE
woocommerce_cart_hash
woocommerce_items_in_cart
wp_woocommerce_session_

URL
?add-to-cart=
/carrello
/checkout
^/(cart|checkout|my-account/|addons|wc-api|wp-admin|wp-login|logout)

The mini CART in the header does not display the correct number of products in the cart. The number of products in the cart is displayed correctly on all pages except on the home page. This problem only occurs for Mobile, everything works fine from Desktop. If I deactivate Breeze and then Varnish everything works perfectly.

I read the other discussions on this forum but I can’t find the solution to my problem.

Please help me.

Thank you!
Ermando


#2

I solved the problem. The mini CART AJAX system was missing.

Thank you!


#3

Dear ermandocolella,

Could you please share your varnish settings for woocommerce?
I have a problem with mini cart, I guess you managed to solve it :wink: