Show Cart Button only when product in the cart

I am trying to set my cart button so it only shows in the header when there’'s product in the cart. I am using the Off Canvas style cart as shown by Josh Donnelly.

The condition I’m using for the Off Canvas element is {{dc:woocommerce:cart_items}} > 0 and I’m using it as a number expression in conditions.

At the moment it doesn’t show the cart button in the header at all.

Hello @DesignMunky,

Thanks for writing in!

You will have to use {{dc:woocommerce:cart_items_raw}} > 0 instead.

Kindly let us know how it goes.

Thanks Ruenel,

That did the trick! Appreciate it.

Cheers

Glad to hear that @DesignMunky

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.