Cart page cart icon error

Solved

Cart page cart icon error

Sivadarshan
Shopify Partner
53 0 6

Hi, When the product is not added in cart the icon works fine, but when product added to cart and then we go to cart page or home page then no there is an liquid code error. How to rectify the issue.

 

Websitehttps://vanji-in.myshopify.com/

Password: vanji

 

Screenshot 2024-10-01 164704.png

Accepted Solution (1)

EvinceDev
Shopify Partner
51 5 6

This is an accepted solution.

Hello @Sivadarshan,
Cart Icon is missing from theme files. Steps how to resolve it.
1. Go to theme code.

EvinceDev_0-1727782664911.png

2.Go to snippets -> Add a snnippets -> Create new file with name 'icon-cart'

EvinceDev_1-1727782811414.png

 


3. Add this code on it and save it.

<svg
  class="icon icon-cart"
  aria-hidden="true"
  focusable="false"
  xmlns="http://www.w3.org/2000/svg"
  viewBox="0 0 40 40"
  fill="none"
>
  <path fill="currentColor" fill-rule="evenodd" d="M20.5 6.5a4.75 4.75 0 00-4.75 4.75v.56h-3.16l-.77 11.6a5 5 0 004.99 5.34h7.38a5 5 0 004.99-5.33l-.77-11.6h-3.16v-.57A4.75 4.75 0 0020.5 6.5zm3.75 5.31v-.56a3.75 3.75 0 10-7.5 0v.56h7.5zm-7.5 1h7.5v.56a3.75 3.75 0 11-7.5 0v-.56zm-1 0v.56a4.75 4.75 0 109.5 0v-.56h2.22l.71 10.67a4 4 0 01-3.99 4.27h-7.38a4 4 0 01-4-4.27l.72-10.67h2.22z"/>
</svg>
Want to modify or develop new app, Hire us.
If our Answer is helpful then please Like and Accept Solution!
I am an eCommerce and Marketing Technology consultant based in India.
To inquire about consulting work availability, You can reach me on Skype by live: rahul.evince or mail on [email protected].
Shopify Apps URL :- https://apps.shopify.com/partners/gemfind1
Customization on Shopify Theme | Shopify App Development | SEO & Digital Marketing

View solution in original post

Replies 2 (2)

Rahul_dhiman
Shopify Partner
558 111 109

Hello @Sivadarshan 
Search this code in your base.css file and delete and then save the file.
15.png

If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me [email protected] - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167

EvinceDev
Shopify Partner
51 5 6

This is an accepted solution.

Hello @Sivadarshan,
Cart Icon is missing from theme files. Steps how to resolve it.
1. Go to theme code.

EvinceDev_0-1727782664911.png

2.Go to snippets -> Add a snnippets -> Create new file with name 'icon-cart'

EvinceDev_1-1727782811414.png

 


3. Add this code on it and save it.

<svg
  class="icon icon-cart"
  aria-hidden="true"
  focusable="false"
  xmlns="http://www.w3.org/2000/svg"
  viewBox="0 0 40 40"
  fill="none"
>
  <path fill="currentColor" fill-rule="evenodd" d="M20.5 6.5a4.75 4.75 0 00-4.75 4.75v.56h-3.16l-.77 11.6a5 5 0 004.99 5.34h7.38a5 5 0 004.99-5.33l-.77-11.6h-3.16v-.57A4.75 4.75 0 0020.5 6.5zm3.75 5.31v-.56a3.75 3.75 0 10-7.5 0v.56h7.5zm-7.5 1h7.5v.56a3.75 3.75 0 11-7.5 0v-.56zm-1 0v.56a4.75 4.75 0 109.5 0v-.56h2.22l.71 10.67a4 4 0 01-3.99 4.27h-7.38a4 4 0 01-4-4.27l.72-10.67h2.22z"/>
</svg>
Want to modify or develop new app, Hire us.
If our Answer is helpful then please Like and Accept Solution!
I am an eCommerce and Marketing Technology consultant based in India.
To inquire about consulting work availability, You can reach me on Skype by live: rahul.evince or mail on [email protected].
Shopify Apps URL :- https://apps.shopify.com/partners/gemfind1
Customization on Shopify Theme | Shopify App Development | SEO & Digital Marketing