Magento Forum

Default quantity? 
 
Ron77
Member
 
Total Posts:  47
Joined:  2008-07-07
 

In my default installation, the quantity text box is always empty. Shouldn’t it be 1 by default? (see pic)
True, if you click Add to Cart, it adds one. but i think it should also be 1 in the box. how can I set the default value?

Thanks,
Ron

Image Attachments
screen3.gif
 
Magento Community Magento Community
Magento Community
Magento Community
 
roshangmail
Jr. Member
 
Avatar
Total Posts:  29
Joined:  2008-05-17
 

<input name="qty" type="text" class="input-text qty” id="qty" maxlength="12" value="<?php echo $this->getMinimalQty($_product)== null?1:$this->getMinimalQty($_product) ?>"/>

put this code on \app\design\frontend\default\modern\template\catalog\product\view\type/sipmle.html

and check the there will appear the 1 on text box
thanx

 
Magento Community Magento Community
Magento Community
Magento Community
 
team_in_medias
Sr. Member
 
Avatar
Total Posts:  113
Joined:  2008-05-06
Aachen, Germany
 

You can find that snippet in \app\design\frontend\xxx\xxx\template\catalog\product\view\addtocart.phtml in version 1.1. It still looks the same though grin

 
Magento Community Magento Community
Magento Community
Magento Community
 
roshangmail
Jr. Member
 
Avatar
Total Posts:  29
Joined:  2008-05-17
 

refresh magento catche and refresh whole system with the configuration in adim pannel with catche management options

 
Magento Community Magento Community
Magento Community
Magento Community
 
Loic_LC
Sr. Member
 
Avatar
Total Posts:  194
Joined:  2007-12-19
Paris, France
 

Thank you so much roshangmail. worked out for me. (V1.1.2)

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top