How to change the default quantity box to ‘1′ in Magento?
So you want to add a quantity box with default qty 1 next to the “add to cart” button?
Locate:
\app\design\frontend\default\default\template\catalog\product\viewChange the file:
addtocart.phtmlFind and Replace:
<input name="qty" type="text" class="input-text qty” id="qty" maxlength="12" value="<?php echo $this->getMinimalQty($_product) ?>” /></span>
With:
<input name="qty" type="text" class="input-text qty” id="qty" maxlength="12" value="1" /></span>
That’s it.
Complete the form below to submit your comment.
Magento admin URL change
To change the default admin URL for Magento do the following: 1) Open [...]How do remove the discount code box in Magento?
Here is how to remove the discount code box in Magento: Locate [...]Magento Image Compression
If you would like to get control on the quality of your [...]How to change the default quantity box to ‘1′ in Magento?
So you want to add a quantity box with default qty 1 [...]Wish Your Gift
Very nice and well made! Also good items and good prices.Paddocks Education
Great looking design!Myla
Very pleasing on the eye!
Wish Your Gift
What a great web site! Very nice and well customized, with really smart functions.