• Welcome to KonaKart Community Forum. Please login or sign up.
 

"increase" quantity while adding to shopping cart

Started by michaelwechner, May 11, 2010, 03:32:26 pm

Previous topic - Next topic

michaelwechner

Hi

I have installed the demo shop of konakart and within the demo one can only increase the quantity within the shopping cart itself whereas I would rather have the user increase the quantity when picking the product, as for example done in the following case

http://www.asianfoodgrocer.com/

How can this be done?

The only shopping cart related info which I have found was at

http://www.konakart.com/docs/MovieReviewExample.html

Any other pointers are very much appreciated.

Thanks

Michael

julie

It looks like they use the AddToCartForm to which they've added a productQuantity attribute:

<form name="AddToCartForm" method="post" action="/AddToCartSubmit">
                  <input type="hidden" name="productId" value="82">
                  <h3><a href="/product/glico-chocolate-pocky">Glico Chocolate Pocky 2.82 oz</a></h3>
                  <p>Price: $1.78</p>
                  <label>Qty:</label><input type="text" name="productQuantity" maxlength="3" value="1" style="width:30px;">

Then in AddToCartSubmitAction they use the quantity passed in through the form instead of hard coding it to 1.

michaelwechner

Thanks very much for this pointer.

I will give it a try.

Cheers

Michael