How do you implement this saving function?

Solved
New Member
9 0 0

 

How to implement the function shown in the picture below?image.png

0 Likes

Hello 

You are working on which theme.

Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Free Review and advice for sale on store | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | SEO & Digital Marketing | Site Speed Optimization | Performance Site Audit
0 Likes

Success.

Hello miu,

Add this code at 
Online Store-> Themes -> Edit code->Templates-> product-template.liquid above add to cart form.

You Save {{ product.price | times: -100 | divided_by: product.compare_at_price_max | plus: 100 | ceil | append: '%' }}! 
{% assign total_saved = product.compare_at_price | minus:product.price | money %}
        <div id="totalSaved">
          <p>({{ total_saved }})</p>
        </div>
Want to modify or incorporate custom changes on store, Hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Free Review and advice for sale on store | Shopify Private App | Custom Theme Development | Custom Modifications In To Shopify Theme | SEO & Digital Marketing | Site Speed Optimization | Performance Site Audit
0 Likes