• Resolved thewebtailors

    (@thewebtailors)


    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)
  • Plugin Author adeelkhan

    (@adeelkhan)

    Basically, Breeze excludes the Cart, Checkout, and My-Account pages from the cache in WooCommerce to bypass the cache. You called the WooCommerce hook on the home page, the home page is cached due to which WooCommerce hooks values are cached.

Viewing 1 replies (of 1 total)
  • The topic ‘Cart Count Displayed in Header’ is closed to new replies.