How do you implement this saving function?

Solved
New Member
8 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 custom changes on store hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Content Writer | Digital Marketing | SEO Expert | Site Optimization | Web Design | Web Development
0 Likes
Highlighted

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 custom changes on store hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Content Writer | Digital Marketing | SEO Expert | Site Optimization | Web Design | Web Development
0 Likes