Shopify themes, liquid, logos, and UX
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.
@KybeleConcept - it will need code editing, it can be done
Hi,
Please go to Actions > Edit code > Snippets and open product-grid-item.liquid
Find the code below (about line 25)
{{ 'products.product.sale' | 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.
Thanks.
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,
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!
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!
PageFly
We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024