Remove variant selection when only one available

1 vote

Remove variant selection when only one available

This should be very easy to implement. Say I have a black t-shirt and a white t-shirt linked. The black is out of stock. Then I don’t want to show the white t-shirt option to the user. It makes no sense. I got a snippet from support to remove it using javascript. But that creates cumulative layout shift as it draws out the variation and then removes it again. It would be much better to just not render it out in the first place if <2 options are available. I hope this makes sense. Thanks!
Attachments
Category: Linked Variations Avatar ben72 shared this idea

0 Responses

Leave a Reply

Your email address will not be published. Required fields are marked *