Solved

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

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

Accepted Solution (1)

dmwwebartisan
Shopify Partner
12280 2546 3694

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
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app

View solution in original post

Replies 3 (3)

dmwwebartisan
Shopify Partner
12280 2546 3694

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
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app
khaliled1688
Tourist
8 0 4

Thank you very much! Already solved.

DesignerJoe55
Explorer
45 0 22

@khaliled1688 wrote:

Thank you very much! Already solved.


Did you solve this for Online Store 2.0? The referenced post is for the old version.