Good morning, I would like to put on my store the dynamic saved percentage, now as you can see is static and is always 30%(I’ve set it by “edit default theme content”). The store’s url is ferrucciokids.myshopify.com and is pass free.
Many thanks in advance, best regards.
Simone Aresta
- In the code editor, navigate to the “Sections” directory and open the
product-template.liquid file.
{% assign savedPercentage = product.compare_at_price | minus: product.price | times: 100 | divided_by: product.compare_at_price %}
Thank you for your answer. The code should be put in a particular place? Cause it doesnt work