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

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_1-1751269742284.png

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 -%}
              {{ cart.item_count }}
            {%- endif -%}

Please change it to this and save your file

{{ cart.item_count }}

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

{%- if cart.item_count > 99 -%} 99+ {%- else -%} {{ cart.item_count }} {%- endif -%} {{ 'sections.header.cart_count' | t: count: cart.item_count }}

Thanks!

Thanks. That’s a wonderful response

Very welcome.

Happy I could help!