How to change cart item indicator to a number

Hey

I would like to have my cart item indicator go from an icon to a number.

Currently looks like this.

I want it to look like the image below.

juggtilimdead_1-1690546141208.png

any help would be appreciated!

@juggtilimdead

Please share your store URL!

Thanks!

Hello @dmwwebartisan

{% comment %} Add this filter to your Shopify theme’s Liquid code {% endcomment %}
{% capture number_words %}zero,one,two,three,four,five,six,seven,eight,nine,ten,eleven,twelve,thirteen,fourteen,fifteen,sixteen,seventeen,eighteen,nineteen,twenty,thirty,forty,fifty,sixty,seventy,eighty,ninety{% endcapture %}
{% assign number_words = number_words | split: β€˜,’ %}

{% assign cart_count_words = β€œβ€ %}
{% if cart_count <= 20 %}
{% assign cart_count_words = number_words[cart_count] %}
{% else %}
{% assign tens = cart_count | divided_by: 10 %}
{% assign units = cart_count | modulo: 10 %}
{% assign cart_count_words = number_words[tens + 18] %}
{% if units > 0 %}
{% assign cart_count_words = cart_count_words | append: β€œ-” | append: number_words[units] %}
{% endif %}
{% endif %}

{% unless cart_count_words == blank %}
{{ cart_count_words | capitalize }}
{% else %}
{{ cart_count }}
{% endunless %}

{% comment %} Add this filter outside any other Liquid tags or blocks {% endcomment %}

You can try by above code, If it does not work, I can assist you with this by examining your theme code. Once you approve the collaboration, we can proceed with fixing the issue for you.

https://975633-2.myshopify.com/

Hi @juggtilimdead ,

I have requested the collaborator Access , kindly Approve so I can look into it

1 Like

Hi @juggtilimdead ,

We have fulfilled your request , Please Let us know if that works for you .
You can always reach out to us via Email if you need additional support