Shopify themes, liquid, logos, and UX
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
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/
Solved! Go to the solution
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>
- 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.
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>
- 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.
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!
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.
Thanks. That's a wonderful response
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.