How to hide unavailable product variants in Shopify?

ducleeno1
New Member
5 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

 

0 Likes
Mujtaba8
New Member
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

0 Likes
ducleeno1
New Member
5 0 0

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

0 Likes
Mujtaba8
New Member
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

0 Likes
ducleeno1
New Member
5 0 0

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

 

 

0 Likes
ducleeno1
New Member
5 0 0

Thank but it still doesn't work with my theme

0 Likes