Cart Count Displayed in Header
-
I am using the following code (simplified for demonstration purposes) in my header file to output the WooCommerce Cart Count:
global $woocommerce; echo $woocommerce->cart->cart_contents_count;
However on cached pages (e.g. homepage) it does not show the updated cart count unless I log into the backend and clear the Breeze Cache.
Is there a possibility to bypass the cache for a person if they added products to the cart?
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Cart Count Displayed in Header’ is closed to new replies.