KonaKart Community Forum

Installation / Configuration => Configuration of KonaKart => Topic started by: michaelwechner on May 11, 2010, 03:32:26 pm

Title: "increase" quantity while adding to shopping cart
Post by: michaelwechner on May 11, 2010, 03:32:26 pm
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
Title: Re: "increase" quantity while adding to shopping cart
Post by: julie on May 11, 2010, 03:45:44 pm
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.
Title: Re: "increase" quantity while adding to shopping cart
Post by: michaelwechner on May 11, 2010, 03:57:50 pm
Thanks very much for this pointer.

I will give it a try.

Cheers

Michael