>
> {{for i, (product_id, qty, total_price, product, options) in
> enumerate(order):}}
> <td><input class="input_quantity value" name="product_quantity_one"
> id="value_pro_1" type="text" value="{{=qty}}" /></td>
> <td><div class="minus" id="min_pro_1">-</div></td>
> <td><div class="plus" id="plus_pro_1">+</div></td>
>
> So item two would be:
>
> <td><input class="input_quantity value" name="product_quantity_one"
> id="value_pro_2" type="text" value="{{=qty}}" /></td>
> <td><div class="minus" id="min_pro_2">-</div></td>
> <td><div class="plus" id="plus_pro_2">+</div></td>
If you want the numbers to increment from 1, you could do:
<td><input class="input_quantity value" name="product_quantity_one"
id="{{='value_pro_%s'
% (i + 1)}}" type="text" value="{{=qty}}" /></td>
<td><div class="minus" id="{{='min_pro_%s' % (i + 1)}}">-</div></td>
<td><div class="plus" id="{{='plus_pro_%s' % (i + 1)}}">+</div></td>
Or instead, you might consider using the product_id in place of (i + 1).
Anthony
--