The following article describes how you can let your web shop visitors add multiple products to the shopping cart with a single click.
All you need to do is to change the template for the product list.
The following shows an implementation example of the necessary template tags:
<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>
All you need to do is:
<input type="hidden" name="CartCmd" id="CartCmd" value="addMulti" /><!--@Ecom:Product.Form.Multi.HiddenFields-->
name="Quantity<!--@Ecom:Product.LoopCounter-->To finish things off then simply let users submit the form when adding products to the shopping cart, i.e. the "Add to cart" link as displayed in the following:
<a href="javascript:document.multiForm.submit();"><img src="files/system/shop_addtocart.jpg" alt="Add to cart" border="0" /></a>