Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
How would I remove the need for the quantity box? 
 
medic
Sr. Member
 
Total Posts:  129
Joined:  2007-10-30
Sydney
 

I don’t need to have the quantity box on my shop.

How would I go about removing it?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
laurent
Member
 
Total Posts:  62
Joined:  2007-08-31
Paris, France
 

If you mean the quantity in the product page, there is 3 templates files depending on product type.
For simple products, the file is app/design/frontend/your_interface/your_theme/template/catalog/product/view/type/simple.phtml

Remove all the <span class="qty-box">[...]</span>

And by the way, for those who want the input box value to be 1 by default instead of nothing:
find:

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

 
Magento Community Magento Community
Magento Community
Magento Community
 
lisali
Guru
 
Avatar
Total Posts:  459
Joined:  2008-04-28
London, UK
 

Note:

This still works. However, the file to modify is now addtocart.phtml and NOT simple.phtml.

Thanks!

 Signature 

ExtraCall.com - UK Telecommunications & VOIP

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
53218 users|808 users currently online|107270 forum posts