A user reports that their shopping cart displays items but doesn’t show the item count number in the cart bubble indicator.
Proposed Solution:
A developer suggests adding {{ cart.item_count }} code within the cart bubble’s if-block in the header file to display the count.
Follow-up Issue:
Another user experiences the same problem despite having what appears to be correct code in their cart template file. They’ve shared their Liquid template code (which includes cart item loops and discount sections) but cannot identify why the count isn’t displaying.
Additional Notes:
Screenshots were referenced but appear corrupted or encoded in the original posts
Some service providers offered paid assistance
The issue remains unresolved for at least one participant
The problem involves Shopify theme customization using Liquid templating
Summarized with AI on November 12.
AI used: claude-sonnet-4-5-20250929.
So as the bubble already appears, when there is a product in your cart, you just need to add a line of code to display the amount of products in your cart. This line should do the trick in your header file. Put it in the if block of the cart bubble
I currently have the same issue, ive checked the code and it all looks correct..so i dont quite know why its doing this? Is there anything you can suggest? it wont let me upload a screen shot so here is the coding;
{% comment %}
JS-load cart markup without bloat of a full layout.
This is used in both the mini cart drawer and cart page.
When a quantity is changed, this file is scraped and data-products
is fully replaced to account for possible cart discounts changing
The cart-wide discount div also replaces what is originally in the cart
as it can change anytime a cart-item changes
{% endcomment %}
{% layout none %}