Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
I have 1 clothing product with 5 colors. I want to put 1 color on sale and i only want to show this color in my smart collection "ON SALE". Is that possible ?
THX for your help.
Solved! Go to the solution
This is an accepted solution.
So for the other colours that are not on sale just remove any value from their compare at price and they won't show on sale badge.
This might need code modifications to not include other colours since it's in variant level. If this was on product level you could have just created a new collection and only include those products that are on sale
Yeah this is possible. Since you have 5 colours, these 5 colours will show up as different variants for your product. If you from the product customizer click the colour variant which you want to put on sale, add a compare at price to it which is the price you were selling before so the high price and then the price in which you are selling in the price field.
Almost every theme now is coded in a way that the on sale badge is shown automatically once you set the compare at price greater than the price in which you are selling now.
Hope I could explain and this helps.
Hey, thx for your reply.
You are right! The badge "ONSALE" only appears on the color i put a "compare at price".
But the 4 other color which are not on sale also appears on my ON SALE collection page. I would like to block these 4 colors from appearing on the ONSALE collection.
to sum up > I have 1 product with 5 colors:
. on the main collection i want the 5 colors to show
. on the ONSALE collection i want ONLY that 1 color "on sale" to show.
THX for your help 🙂
This is an accepted solution.
So for the other colours that are not on sale just remove any value from their compare at price and they won't show on sale badge.
This might need code modifications to not include other colours since it's in variant level. If this was on product level you could have just created a new collection and only include those products that are on sale
Thank you! i'll have to look into code 🙂
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025