How to hide color option if there is only one variant ?

Solved
khaliled1688
Tourist
8 0 4

Hi Experts, 

I would like to hide the color option if there is only one variant for color.  

let say, my product have only blue color, then no need to show color variants , but if there is blue and red, it shows for customer to choose. 

Can you help to code this condition ?

Thanks

dmwwebartisan
Shopify Partner
5260 1211 1552

This is an accepted solution.

@khaliled1688 

The following post will help you to do a hide variant dropdown.

https://community.shopify.com/c/Shopify-Design/Hide-Variant-with-one-option-Debut-theme/td-p/551216

Hope this helps.

Thanks!

If helpful then please Like and Accept Solution.
Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Advanced Shopify Page Builder to customize your pages - check here PageFly App
khaliled1688
Tourist
8 0 4

Thank you very much! Already solved.