Hide unavailable variants in craft theme

Hide unavailable variants in craft theme

Cosydayscrochet
Excursionist
12 0 6

Is it possible to hide unavailable variants with the Craft theme?

 

I had my shop built for me, but I'm struggling with this one issue mostly.

 

A lot of my items have two drop down options. One being type of item and the other a size guide. Different types of items need different sizes. You can see what I mean in this photo:

 

Cosydayscrochet_0-1734431496857.jpeg

 

 

Is there a way to hide the 'unavailable' options? 

 

I've tried using the HiVar app but it doesn't seem to work

 

I have tried many a recommendation on this and it still isn't working so I'm wondering if I've uploaded my variants wrong?

 

Cosydayscrochet_1-1734431575206.png

 

 

I've grouped them by style then added the size variants that apply to each style. Is this incorrect? I'm really stumped and just want a smooth running and cohesive store.

 

Thanks

Reply 1 (1)

Weblegs_Support
Shopify Partner
16 1 0

Hello

Add condition under product-variant-options.liquid file
{% if value.available %}
{% endif %}
image (43).png