Hiding Variants

Tourist
12 0 3

Oh okay. Is this something that you can develop then?

 

Thanks for your help

0 Likes
Shopify Expert
4037 563 967

Yes its about to custom code, check your PM

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes
New Member
3 0 0

I have the same problem. Was this ever solved?

0 Likes
Shopify Expert
4037 563 967

Yes, for that need all custom code, Pm me if want. 

Want to modify or custom changes on store hire me.
If helpful then please Like and Accept Solution.
Email: jasoliyabrijesh123@gmail.com Or WhatsApp Or Skype: jasoliya.brijesh
Want to get Free review and advice for sale on store ?? just text me here
0 Likes

As of now, this is only possible in code. I wish Shopify would give us more control over variants natively instead of peddling third party apps to us.

In my own store, what I did was to hijack the "This is a physical product" checkbox to use it as a checkbox to show or hide the variant on our website. Since this manifests in Liquid code as "variant.requires_shipping", I wrapped the relevant code with "{% if variant.requires_shipping %} ... {% endif %}". If I disable the checkbox, that variant doesn't get shown as an option in the website at all. The checkbox was fine for me since normally all of our products require shipping, so I'd never legitimately turn the checkbox off. So it made sense for me to repurpose it. Of course, if you already use the checkbox to actually distinguish shipped vs non-shipped products, you'll have to find something else that's unused - like the Compare at Price (set to something weird like 0.01), the Barcode or the SKU fields (set to a very specific phrase, like HIDETHIS).

Unfortunately this only works in the Online Store. There's no way to control the variant in other channels yet, until Shopify gives us complete control to turn a variant on or off within the Admin site.

If my reply helped you, please give it a Like and mark it as Accepted Solution.
Do you want me to fix your theme code? Visit https://www.fiverr.com/s2/a9cef5059a
Need a website tester? Visit https://www.fiverr.com/s2/e4370711eb
0 Likes
New Member
2 0 3

I agree. Would love to see a Shopify supplied fix for this. Variants are an integrated part of the system, so should have more in built controls there.

0 Likes