Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 2 of 2
How to add a quantity box with default qty 1 next to “Add to cart” buttons? 
 
moyomoy
Jr. Member
 
Total Posts:  3
Joined:  2011-10-04
 

It worked for me adding it to all the subgroups

 
Magento Community Magento Community
Magento Community
Magento Community
 
moyomoy
Jr. Member
 
Total Posts:  3
Joined:  2011-10-04
 

IT WORKED FOR ME ADDING 1 TO ALL THE SUB-GROUPS

 
Magento Community Magento Community
Magento Community
Magento Community
 
rotozuk
Jr. Member
 
Total Posts:  26
Joined:  2011-06-21
 

Strange.. This works for one of my sites, and not for the other.

I control inventory on the site where it works. I do not control inventory on the site that is does not work on. I thought this might be the issue, so I turned on the inventory controls, but still not working.

Any ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
 
saidelpd
Jr. Member
 
Total Posts:  2
Joined:  2012-07-23
 

better solution
<?php
$quantity=$this->getProductDefaultQty() * 1;
if($quantity==0)
{
$quantity=1;
}
?>

<input type=\"text\" name=\"qty\" id=\"qty\" maxlength=\"12\" value=\"<?php echo $quantity ?>\” title=\"<?php echo $this->__(\'Qty\') ?>\” class=\"input-text qty\” />

there is not problem here

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 2 of 2