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
Tourist
10 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
8532 1682 1692

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 and Accept solution to let me know or Buy me Coffee ❤️!
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 6 (6)

Hardik29418
Shopify Partner
2913 419 1081

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
Tourist
10 0 3

shop.matassessment.com

kazi
Shopify Partner
582 88 110

@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
Tourist
10 0 3

yes it work when i test site on a new theme

Dan-From-Ryviu
Shopify Partner
8532 1682 1692

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 and Accept solution to let me know or Buy me Coffee ❤️!
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Enjoy 1 month of Shopify for $1. Sign up now.

kingsk23
Tourist
10 0 3

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