Solved

Linking product Options and Hiding Sold Out Variants on Sectioned Themes

JonnyMac
Tourist
11 0 1

Hi there,

 

I've seen in numerous threads on this discussion board about hiding variants that are sold out.

 

I'm finding this quite the issue, as I have products with multiple variants. However, every option is not always in-stock, so it would be good for those to be hidden, otherwise, how is a customer to know without trying multiple combinations of variants before finding what's available.

 

This, to me, is a huge unfriendly user experience and something I would've thought a company as big as Shopify would've addressed already.

 

I see that there's documentation for this issue:

 

https://help.shopify.com/en/themes/customization/products/variants/link-product-options-in-menus

 

https://help.shopify.com/en/themes/customization/products/variants/hide-variants-that-are-sold-out

 

However these don't work with sectioned themes. These were released in 2016, so almost 3 years without an obvious solution for the new themes.

 

Is there a definitive solution to this? 

 

Thanks

 

Jonny

Accepted Solution (1)

tim
Shopify Expert
3274 236 1183

This is an accepted solution.

Yes, for example here 

But the code is theme dependent -- it will work for free themes with drop-downs and will require modification for buttons/swatches or if drop-down elements have different classes assigned.

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.

View solution in original post

Replies 21 (21)