About 'SALE' label and strikethrough price
In this article:
Introduction
'SALE' label and strikethrough price by compare at price
'SALE' label and strikethrough price by product level promotion
Remove the 'SALE' label which created by compare at price
Changing the size of 'SALE' label
Change the 'SALE' label position to right side
Rename the word 'SALE' for label
1. Introduction
'SALE' label is an auto-generate label when any price deduction was made for a product. It displays at the top right corner of your product image with default theme color and always comes together with strikethrough price.
2. By compare at price
Compare at price is a price discount function that embed in Admin > Products, Pricing section.
Once Compare at price is filled, 'SALE' label and strikethrough price will be shown on product.
3. By product level promotion
Other than Compare at price, 'SALE' label and strikethrough price will also appear if you have created a product level promotion for this product.
To create this type of promotion, you may visit this page to know which of the tools are product level promotion tools ( for selected products ). Then, go to Admin > Promotions > Add promotion to create promotion.
Make sure the conditions below are fulfilled in order to show the 'SALE' label and strikethrough price.
Quantity = 1, quantity = 2 or above will not trigger
Voucher code = Not applicable
Target customers = Open to public
4. Remove the 'SALE' label which created by method 2 & 3
If you wish to have a different label for promotional products or you think the 'SALE' label blocks your product display, you can disable the label by following the steps below:
Step 1: Select product-cart.liquid under snippets > Remove lines 4 - 6 > Save
Result:
5. Changing the size of 'SALE' label
You can change the size for both the font and label of 'SALE' label. Go to EasyStore Admin > Channels > Online Store > Edit source > assets/theme.scss
5.1 Search for .badge:
Label size: adjust the number beside $badgeSize:
5.2 Save and done.
6. Change the 'SALE' label position to right side**
By default, the 'SALE' label from compared at price would be displayed on the top left of your product image.
You can change the position to the top right side from EasyStore Admin > Channels > Online Store > Edit source > product-card.liquid under snippets
Look for card_badge-on sale and change the word left to right > Save and you're done!
Result:
7. Rename the word 'SALE' for label
7.1 Go to EasyStore Admin > Channels > Online Store > Edit source > product-card.liquid under snippets
7.2 Look for {% assign sale_text and you may change the label text here
7.3 Save
Result :
Updated on: 01/11/2023
Thank you!