Show Amount Save On Product Page Debut Theme

Tofik
New Member
1 0 0
Hey someone there to assist me as I want to display save amount on product page as I've code for showing percentage off % but instead I want to show amount what's implement i need?
Mentioned code below for % off 
 
 
           <span id="YouSave" class="product-save green"> &nbsp;              
            ( {{ product.compare_at_price | minus:product.price | times:100 | divided_by:product.compare_at_price }}% OFF )
              </span>
 
 
 
 
0 Likes

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>

If helpful then please Like and Accept Solution. Free Website Review and advice for sale from Hire us
Shopify Conversion Experts | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | Shopify SEO | Digital Marketing | Site Speed Optimization | Performance Site Audit
For Quick Chat Whats app | Email: pallavi@oscprofessionals.com | Skype : oscprofessionals-87
0 Likes