How to remove quantity box from product details page in Magento?

How to remove quantity box from product details page in Magento?
logo

Today, we received a question from a customer

How can I remove the Quantity box from the product details page for configurable products? Is it possible to remove the QTY box from the shopping cart too? I am using Magento Community version 1.7

So in this article we will show you how to to remove quantity box from the product details page

remove quantity box

remove quantity box

Go to

/app/design/frontend/default/mt_colinus/template/catalog/product/view/addtocart.phtml

Change

<label for="qty"><?php echo $this->__('Qty:') ?></label>

To

<label for="qty"><?php echo $this->__(' ') ?></label>

And change

<input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" />

to

<input type="hidden" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" />

Hope this will be helpful.