Hey guys,
I'm trying to create a template, where the user can add x quantity of y variantcombinations to the basket, from a productlist. But I can't seem to add the quantity-functionality - I can only get it to put a single item of each variantcombination in the basket.
My variantcombo-loop looks like this:
<!--@LoopStart(VariantCombinations)--> <input type="hidden" name="ProductLoopCounter<!--@VariantCombinations.LoopCounter-->" id="ProductLoopCounter<!--@VariantCombinations.LoopCounter-->" value="<!--@VariantCombinations.LoopCounter-->" /> <input type="hidden" name="ProductID<!--@VariantCombinations.LoopCounter-->" id="ProductID<!--@VariantCombinations.LoopCounter-->" value="<!--@Ecom:VariantCombination.Product.ID-->" /> <input type="hidden" name="VariantID<!--@VariantCombinations.LoopCounter-->" id="VariantID<!--@VariantCombinations.LoopCounter-->" value="<!--@Ecom:VariantCombination.VariantID-->" /> <input type="hidden" name="UnitID<!--@VariantCombinations.LoopCounter-->" id="UnitID<!--@VariantCombinations.LoopCounter-->" value="" /> <div class="control-group pull-left"> <label for="Quantity<!--@VariantCombinations.LoopCounter-->"><!--@Ecom:VariantCombination.VariantText--></label> <input type="text" class="input-mini qty" name="Quantity<!--@VariantCombinations.LoopCounter-->" value="0" data-product-id="<!--@Ecom:VariantCombination.Product.ID-->" /> </div> <!--@LoopEnd(VariantCombinations)-->
This is obviously wrapped inside a form, along with the hidden CartCmd AddMulti-field, which is required.
Can anyone give any pointers as to what I'm missing? I'm having unique ID's for each combination according to my markup, but I can't seem to make the connection between Quantity and the variant combination.
Thanks in advance!
Mads