Developer forum

Forum » Development » How to add the same product several times..

How to add the same product several times..


Reply
 The site:         Chrisco.dk
The template:   chrisco_ProductList.html (Templates -> eCom -> ProductList)
The page used: http://www.chrisco.dk/Default.aspx?ID=632

I have an input field that handles the quantity, and Im using "cartcmd=add" function to add one product, which only adds one product. How to I hook up the inputfield value to the cartcmd=add function, so the number of products in the inputfield is added to the cart, and not just one? 


Replies

 
Nicolai Høeg Pedersen
 
Reply
Thanks for the help, but I cannot seem to get it to work.
I have added the form tag and the hidden fields, the form handler and the input field..
Please help. Im working on a live site..
Site: Ricken.com
template: ecom -> productlist -> Bauhaus_Norge_Table.html
 
Nicolai Høeg Pedersen
Reply
After you have added the form and the hidden field, you also need to change the add to cart link. It has to submit the form instead of still being a link that adds one item.
 
Reply
ok..tested the anchor by submitting the multiform.. Its still not working.. I just cant figure out what Im missing here :S I commented the anchor out because its alive site, so they still have to be able to buy
 
Nicolai Høeg Pedersen
Reply
Well - i gave you the link to how to add multiple products from the product list - not how to add a product multiple times... Sorry.

So - it goes like this:

<form name="<!--@Ecom:Product.ID-->" id="<!--@Ecom:Product.ID-->" method="get">
<!--@Ecom:Product.Form.Clean-->
<input type="text" name="quantity" value="1" />
<input type="submit">
</form>
 
Reply
no harm done. Thanks the the swift response(s) :)

 

You must be logged in to post in the forum