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
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024