# Setting Quantity on Product within Shopping Cart

**URL:** <https://www.ruby-forum.com/t/setting-quantity-on-product-within-shopping-cart/148972>\
**Category:** Rails\
**Created:** [September 18, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/setting-quantity-on-product-within-shopping-cart/148972 "2008-09-18T20:45:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc348/32.png) [@bobm](https://www.ruby-forum.com/u/bobm)\
**Post date:** [September 18, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/setting-quantity-on-product-within-shopping-cart/148972/1 "2008-09-18T20:45:56Z")

</div>

AWDR depot example always sets quantity to 1 when it adds a product to  
the cart. Is there an example anywhere which lets the user set quantity  
to whatever as it adds the product.

I cant see letting a user add a product and if they want a quantiy of  
“3” they have to add the same product 3 times. Not very user friendly.

Again if any one can point me to a sample … much appreciated.
