Show number of item in cart

Solved
New Member
8 0 0

Hi, i need your help ! when i add an item in my cart, i have this: Sans titre.png

 

It is possible to change the red color with the number of items in my cart ? 

 

Sorry for my bad english

0 Likes
Highlighted
Shopify Partner
1773 291 378

Hi,

Yes you can but for that you have change code in your ajax cart Jquery code and if you can't you have to hire some one because its little difficult process fro you.

Let me know if you can't

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
0 Likes
Shopify Partner
50 1 4

Yes, you can.

I need your url to check

Please Like and Accept Solution if you like my solution.
Email: inzaghi.2006@yahoo.com
Skype
: freelancer.nguyenthanhtu
0 Likes
New Member
8 0 0

@Jasoliya  Thanks for reply, you can help me ? im not good for edit code ^^

0 Likes
Shopify Partner
1773 291 378
Sure but this is not just simple task for that i have to check hows your ajax working and then code for count in code.
Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com
Skype: jasoliya.brijesh
0 Likes
Shopify Partner
462 80 94

Please share the url of your site, what theme you are using ?

Author: Hovhannes Sargsyan (aka sarhov).
An individual web developer focused on Shopify development.
Need more help? Feel free to send me a direct message or drop an email shopify@sarhov.com

Website: https://sarhov.com  
Email: shopify@sarhov.com
Skype: @sarhov
Messenger: @sarhov
Telegram: @sarhov
0 Likes
New Member
8 0 0

I can't share my url, it's a private site.. :/ i have the venture theme

0 Likes
Shopify Partner
462 80 94

Okay, I got it, I am not sure it is possible to provide all details what to change via this forum, there is need to change theme.js file for ajax update and also the header for static update. it is about 30mins work to finish

Author: Hovhannes Sargsyan (aka sarhov).
An individual web developer focused on Shopify development.
Need more help? Feel free to send me a direct message or drop an email shopify@sarhov.com

Website: https://sarhov.com  
Email: shopify@sarhov.com
Skype: @sarhov
Messenger: @sarhov
Telegram: @sarhov
0 Likes
New Member
8 0 0

you know what file i have to edit for add a number of article in my cart ? it's cart.liquid or cart-template.liquid or other ? ^^

0 Likes
Shopify Partner
462 80 94

at least 2 files

header.liquid and theme.js

The first one for static state, when the cart.item_count is via liquid, the second one for ajax update.

In theme.js you have to write a script to get cart items count after product added into cart, because in venture theme there is not such script already written.

Also will be need to edit styles to adjust the look of count, because for now it is just a cycle.

Author: Hovhannes Sargsyan (aka sarhov).
An individual web developer focused on Shopify development.
Need more help? Feel free to send me a direct message or drop an email shopify@sarhov.com

Website: https://sarhov.com  
Email: shopify@sarhov.com
Skype: @sarhov
Messenger: @sarhov
Telegram: @sarhov
0 Likes