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 count no longer showing on cart icon in header - debut theme

Solved

Cart count no longer showing on cart icon in header - debut theme

kingsk23
Excursionist
11 0 3

Screenshot 2024-03-21 at 5.15.40 pm.png

 

My website is no longer showing the cart count number on the Shopify cart. It now just shows a solid blue circle.

 

This is on the debut theme.

 

Any suggestions are appreciated.

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
12073 2359 2539

This is an accepted solution.

Hi @kingsk23 

Go to Online Store > Themes > Edit code > open header.liquid file, find this line of code 

<span class="icon__fallback-text medium-up--hide">{{ 'layout.cart.items_count' | t: count: cart.item_count }}</span>

Add this line above it and save file.

<span data-cart-count>{{ 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.

View solution in original post

Replies 6 (6)

Hardik29418
Shopify Partner
2913 418 1083

Hello,

Welcome to the Shopify Community.
I read your problem and it seems that I need to analyze your website to provide the solution here.
Would you please share your website URL and if your website is password protected then also provide the password.

- Need a Shopify developer? Chat on WhatsApp or EMAIL ME!


- Your Coffee Tip would do Magic code ❤️
- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Email
kingsk23
Excursionist
11 0 3

shop.matassessment.com

kazi
Shopify Partner
724 100 125

@Hardik29418  This might be any javascript conflict did you try it on fresh copy?

▶️ If you need more help with your Shopify store
Speed Optimization | Theme Customization ? ☎️ WhatsApp ✉️Email Skype: kof.bd

kingsk23
Excursionist
11 0 3

yes it work when i test site on a new theme

Dan-From-Ryviu
Shopify Partner
12073 2359 2539

This is an accepted solution.

Hi @kingsk23 

Go to Online Store > Themes > Edit code > open header.liquid file, find this line of code 

<span class="icon__fallback-text medium-up--hide">{{ 'layout.cart.items_count' | t: count: cart.item_count }}</span>

Add this line above it and save file.

<span data-cart-count>{{ 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.

kingsk23
Excursionist
11 0 3

Thank you very much. This is amazing and fixed it straight away.