How to Change the Default Values in Quantity Boxes

New Member
7 0 0

Hey everyone

I'm trying to get the default values of the quantity selectors to be 0 for everything, except the first variant (1,0,0,0,0). 

Here's an image for reference:

Shopify Help 1.png

I think I'd have to change the value="0" part in the following code and set a first variant option min value = 1, but I'm not sure how to code for that.

<input type="number" value="0" id="quantity-{{ forloop.index0 }}"style="width:15%;"/>

Thanks in advance! 

0 Likes