Hola..
I've made a shop based on standard DW eCom functionality. Our customer requested that we add give the users of the shop the option of defining how many of a specific shopitem they want to add to the shoppingcart - just with a simple text-field.
Our partner consultant referred to the documentation (http://documentation.dynamicweb.dk/Adding-multiple-products-to-the-shopping-cart-27899.aspx). I've implemented the code as described, and my ProductList template now looks like this:
<form name="multiForm" id="multiForm" method="post">
<input type="hidden" name="CartCmd" id="CartCmd" value="addMulti" />
<!--@LoopStart(Products)-->
<!--@Ecom:Product.Form.Multi.HiddenFields-->
<!--@Ecom:Product.Number--> - <!--@Ecom:Product.Name-->
<!--@Ecom:Product.Price.Price--><br />
<input type="text" name="Quantity!--@Ecom:Product.LoopCounter-->" value="0" />
<!--@LoopEnd(Products)-->
</form>
When i press the 'Submit' button i place outside the loop, the page just reloads and no items are added to the cart. Anyone got any bright ideas?
Also, this snippet is to be used on the ProductList template. I also need to implement it on the Product template. So at this point i'll also need some pointers :)
Hope anyone can help..
Best regards, Peter