Show number of item in cart

Solved
Thorngard
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
Jasoliya
Shopify Expert
4366 574 1100

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 Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
inzaghi_2006
Shopify Partner
51 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
Thorngard
New Member
8 0 0

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

0 Likes
Jasoliya
Shopify Expert
4366 574 1100
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 Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
sarhov
Shopify Expert
482 85 155

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

Author: Hovhannes Sargsyan (aka sarhov)
Email: shopify@sarhov.com
Website: https://sarhov.com
Try Shopify free for 14 days,

0 Likes
Thorngard
New Member
8 0 0

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

0 Likes
sarhov
Shopify Expert
482 85 155

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)
Email: shopify@sarhov.com
Website: https://sarhov.com
Try Shopify free for 14 days,

0 Likes
Thorngard
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
sarhov
Shopify Expert
482 85 155

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)
Email: shopify@sarhov.com
Website: https://sarhov.com
Try Shopify free for 14 days,

0 Likes