Shopify themes, liquid, logos, and UX
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.
Website: https://vanji-in.myshopify.com/
Password: vanji
Solved! Go to the solution
This is an accepted solution.
Hello @Sivadarshan,
Cart Icon is missing from theme files. Steps how to resolve it.
1. Go to theme code.
2.Go to snippets -> Add a snnippets -> Create new file with name 'icon-cart'
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>
Hello @Sivadarshan
Search this code in your base.css file and delete and then save the file.
If this was helpful, hit the like button and accept the solution.
Thanks
This is an accepted solution.
Hello @Sivadarshan,
Cart Icon is missing from theme files. Steps how to resolve it.
1. Go to theme code.
2.Go to snippets -> Add a snnippets -> Create new file with name 'icon-cart'
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>
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024