title: Adding Quantity box to products list magento
body: <p>I am using magento 1.7.I have added the extension called featured product scroller.In that extension they are not providing Qty box.Now i am trying to <a href="http://blog.hiremagentodeveloper.com/ecommerce/add-quantity-box-on-product-listing-page.html" rel="nofollow">add qty box to the product</a> by using following link</p>
  
  <p>But problem is if i change the qty to 5 and add to cart its still adding 1 to shopping cart on every click of add to cart button.How to resolve this</p>
  
  <p>And the code Looks like this</p>
  
  <pre><code>&lt;span class="fadd"&gt;
      &lt;form action="&lt;?php echo $this-&gt;getAddToCartUrl($_product) ?&gt;" method="post" id="product_addtocart_form_&lt;?php echo $_product-&gt;getId()?&gt;"&gt;       &lt;?php if(!$_product-&gt;isGrouped()): ?&gt; 
      &lt;label for="qty"&gt;&lt;?php echo $this-&gt;__('Qty') ?&gt;:&lt;/label&gt; 
      &lt;input type="text" name="qty" id="qty" maxlength="3" value="&lt;?php echo ($this-&gt;getMinimalQty($_product)?$this-&gt;getMinimalQty($_product):1) ?&gt;" class="input-text qty"/&gt; 
  &lt;?php endif; ?&gt; 
  
  &lt;br /&gt; 
                                                         &lt;p&gt;&lt;button type="button" title="&lt;?php echo $this-&gt;__('Add to Cart') ?&gt;" class="button btn-cart" onclick="setLocation(' &lt;?php echo $this-&gt;helper('checkout/cart')-&gt;getAddUrl($_product) ?&gt;')"&gt;&lt;span&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Add to Cart') ?&gt;&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;&lt;/p&gt;
                                                         &lt;/form&gt;
                                                    &lt;/span&gt;
  </code></pre>