How to make number of products visible in the cart while browsing?

Hello,

I could really use some help with making number of products visible in the cart while browsing thru the store.

Right now it doesn’t show any number and there is no difference if there is something in the cart or not, so customers will never be sure if there is a product in the cart or not…

For instance in the picture bellow I have five products in the cart, but it doesn’t show anything.

Theme is Flow.

Thank you in advance!!!

Hello,

Go to theme files > header or cart page [Not sure as this varies based on theme]

Please find the text shown besides the cart icon and add below code after the text.

{% if cart.item_count > 0 %}{{ cart.item_count }}{% endif %}

Let me know how it goes.

Thank you

Thank you for extra fast reply!

Here is how it looks in this theme’s header.liquid

I am not sure where to put the line of code you shared

You’re welcome!

It seems like code is already there. You just need to enable it from theme settings.

Go to theme settings > Header settings > and enable it or just send me screen shot so I can help you what needs to enable there.

Ahhh I was blind :slightly_smiling_face: As soon as I start looking for it I found it :slightly_smiling_face:

Thank you!

It happens :grinning_face:

It looks very ugly, but it’s an improvement :slightly_smiling_face:

Could you please just advice me how to remove that “-” (minus) sign?

AlexWolf1_0-1680531490955.png

Add the [ - ] before text {{ cart.item_count }}

I think I misunderstood … You need to remove that [ - ]

May I have your store link please to check the position pf that hyphen

It’s solved - I found it.

Thank you for your kind help/