All things Shopify and commerce
Hello,
To display save amount on product page.
Add this code at the bottom of
Online Store->Theme->Edit code->Snippets->product.price.liquid
<div class="you-save">
{% if product.compare_at_price_max > product.price %}"You save ({{ product.compare_at_price_max | minus: product.price|money}})"{% endif %}
</div>
Hello thank you it worked how do I change the collor
What you want to change? give me the link
Thank you, i also got this. How do i change the "You save" text size & color?
please share the URL. with screenshot...
Hey, I want to show this section of the collections list in the cart drawer. I am using the refresh theme and this option is only available for the cart page.
Hey, Will this work on Dawn Theme 10.0? I want to show SAVE AMOUNT on offers products in my store.
Hi Wasim,
Thank you for posting here.
Please try this.
Hi, is there a way to make this work for products with variants?
Whenever I have a variant, the calculation breaks for that product.
Thanks!
Hi @Gerapreneur,
It should work fine with variants on the main product template.
If you want on the collection template then the code block will change.
Thanks
Thanks for your answer.
It is not working for products with variants - the calculation of the amount saved is not correct and it shows the same amount for every other variant.
To clarify, there is no issue when its a single variant item.
Hey there, is there a way to make this work with variants?
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024