How hide unavailable product options or variants

New Member
1 0 0

Can anyone  help me please ? I need hide unavailable product variants from listing . Now its showing me all.  For example : - When someone click on pack option it showing all variants but it should hide the size options "66" & "56"  . Same in sizing range options. It should hide "medium" and "large" option. See below image.


I tried few code but its not working properly. 

Community Moderator
Community Moderator
2933 381 590


What you're looking to do doesn't typically come natively in Shopify themes. We do offer an advanced tutorial on how to make variants unavailable here; however, I can't guarantee that it'll work with your theme. If you do attempt to make any changes I would recommend downloading a copy of your theme by going to Online Store/Themes/Actions/Download. This way you have a backup copy should you have any issues with the changes you've made. 

If you're not comfortable making the changes, or if the tutorial doesn't work, then your best bet would be to hire a Shopify Expert if another Community member isn't able to provide insight on how to make these changes. 

Trevor | Community Moderator @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog