New Shopify Certification now available: Liquid Storefronts for Theme Developers

Show % Percentage In Sale Badge - Minimal theme

28 1 15

Hello everyone,


When using Minimal theme, is it possible to change the ‘Sale’ badge to the percentage % sale: 10% for example in stead of the word Sale?


many thanks.

Replies 5 (5)
Shopify Partner
8691 1066 1408

@KybeleConcept - it will need code editing, it can be done

You are welcome to contact me -, My timezone is GMT+5:30,to build shopify pages use pagefly

Support me 🙂
Shopify Partner
392 131 163



Please go to Actions > Edit code > Snippets and open product-grid-item.liquid

Find the code below (about line 25)

{{ '' | t }}


Replace above code to the code below.

{{ product.compare_at_price_max | minus: product.price | times: 100.0 | divided_by: product.compare_at_price_max | money_without_currency | times: 100 | remove: '.0' }}% OFF


Hope it helps.





If helpful, please Like and Accept Solution.
Want to customize your store, please feel free to contact me.
PeopleVillage - Shopify Partner
28 1 15

Dear David,


Thank you for your quick help, it really helped! Still, I guess there's a mistake with the formula, the badges are showing 0% OFF for all products. Posting a screenshot for reference. Thank you very much,

Screen Shot 2022-07-20 at 20.55.40.png

Shopify Partner
8 0 0

Hi David, 


Good day! 


Just wanted to check if you have an update on the correct coding as per attached so correct percentage will show up? 


Thank you so much! 

Shopify Partner
7865 1785 3020

Hi @KybeleConcept

This is PageFly - Free Landing Page Builder. I would love to provide my recommendations for your store based on 6 years of providing solutions for about 100.000 active Shopify merchants.

You can give me url and I will add some custom code to show it. 

One question, do you want to show all pages?

If you want more flexibility to personalize your pages, I'd love to introduce our product PageFly Landing Page Builder with 24/7 support live chat. PageFly has a Free plan where you can use all features and create different page types so I hope give us a try.

If you find my comment useful, please let me know by giving it a Like. Thank you!