How to hide unavailable product variants in Shopify?

How to hide unavailable product variants in Shopify?

ducleeno1
New Member
10 0 0

Please help me to hide the unavailable product variants.

I want to hide Iphone12. Iphone 12 mini, Iphone 12 pro.... when choosing SAMSUNG in this case.

Please help me to fix it

P/s Sorry for my bad English.

ducleeno1_0-1625823547533.png

 

Replies 6 (6)

Mujtaba8
Shopify Partner
3 0 0

Hi. You can use this tutorial to hide unavailable variants. Feel free to reach me for any help.

https://help.shopify.com/en/manual/online-store/themes/os/customize/hide-sold-out-variants

ducleeno1
New Member
10 0 0

Thank you but it's doesn't work with my theme. I use District theme

Mujtaba8
Shopify Partner
3 0 0

Hi please go in theme.liquid and add that code

theme..JPG

 

Now create a snippet named as  'linked-options' and then copy code from here and paste in the snippet.

https://gist.github.com/mujtaba-88/5dbf3c4b5d58ae1764b785d708b6d0b6

Hope its work

ducleeno1
New Member
10 0 0

Thank you so much, but the link in github is not avalable!

 

 

Mujtaba8
Shopify Partner
3 0 0
ducleeno1
New Member
10 0 0

Thank but it still doesn't work with my theme 😞