I'm using the debut theme, and I'm looking for a way to get shopify to automatically hide the images for out of stock variants on the product page. I've found a code to hide the out of stock variants from the drop down list, but the images are still there.
Welcome to the Shopify community!
Please share your site URL,
So I will check and provide a solution here.
Sorry, i can't see multi varial producr with sold out
For example this product:
The print 'snow leopard' is sold out, so I'd like it not to appear in the list, but also for it's image to be hidden
It can be done by doing some code customization. Please take the help of a developer and hire Shopify Expert or me
You can use the below code to hide the sold-out and not available variants. The code also handles the removal of the image if it's all variants not available. You can edit the code according to your requirements.