We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Cart bubble count not visible when cart quantity reached to 100 or more

Solved

Cart bubble count not visible when cart quantity reached to 100 or more

remz1234
Excursionist
41 0 9

Hi, does anyone encountered this kind of display error? When my cart bubble count reaches to 100 or 3 numbers, the count doesn't display but if the cart quantity is less than 100 or only two numbers, it displays. 

 

Store url: https://www.brinnova.com/

 

remz1234_0-1751269736326.pngremz1234_1-1751269742284.png

 

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
12073 2359 2539

This is an accepted solution.

Hi @remz1234 

You can solve it by editing the code below in Sales channels > Online Store > Themes > click "..." in Current theme > Edit code > open header.liquid file

            {%- if cart.item_count < 100 -%}
              <span aria-hidden="true">{{ cart.item_count }}</span>
            {%- endif -%}

Please change it to this and save your file

              <span aria-hidden="true">{{ cart.item_count }}</span>

Screenshot 2025-06-30 at 15.05.04.png

 

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 5 (5)

Dan-From-Ryviu
Shopify Partner
12073 2359 2539

This is an accepted solution.

Hi @remz1234 

You can solve it by editing the code below in Sales channels > Online Store > Themes > click "..." in Current theme > Edit code > open header.liquid file

            {%- if cart.item_count < 100 -%}
              <span aria-hidden="true">{{ cart.item_count }}</span>
            {%- endif -%}

Please change it to this and save your file

              <span aria-hidden="true">{{ cart.item_count }}</span>

Screenshot 2025-06-30 at 15.05.04.png

 

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

remz1234
Excursionist
41 0 9

Hi @Dan-From-Ryviu, I figured out with this code :

<div class="cart-count-bubble">
<span aria-hidden="true">
{%- if cart.item_count > 99 -%}
99+
{%- else -%}
{{ cart.item_count }}
{%- endif -%}
</span>
<span class="visually-hidden">
{{ 'sections.header.cart_count' | t: count: cart.item_count }}
</span>
</div>

 

Thanks!

Dan-From-Ryviu
Shopify Partner
12073 2359 2539

Very welcome. 

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

Brielle
Visitor
1 0 1

Thanks. That's a wonderful response

 

 

Dan-From-Ryviu
Shopify Partner
12073 2359 2539

Happy I could help! 

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.