Changing Default Values of Quantity Selectors

Highlighted
New Member
7 0 0

Hi,

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, but I'm not sure how to put a list of numbers there.

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

Any help is appreciated! 

0 Likes