How to show only 1 variantin smart collection?

Solved

How to show only 1 variantin smart collection?

Offrandes
New Member
4 0 0

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.

Accepted Solution (1)
Shadab_dev
Shopify Partner
1512 81 166

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

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.

View solution in original post

Replies 4 (4)

Shadab_dev
Shopify Partner
1512 81 166

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.

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
Offrandes
New Member
4 0 0

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 🙂


Shadab_dev
Shopify Partner
1512 81 166

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

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.
Offrandes
New Member
4 0 0

Thank you! i'll have to look into code 🙂