Try the Demo

Magento

eCommerce Software for Online Growth

Magento Forum

Our new hosted solution for small & emerging businesses
   
Remove “QTY” field for Bundle. 
 
Philster53142
Member
 
Total Posts:  67
Joined:  2009-10-03
 

Does anyone know how to remove “QTY” field at the bottom for bundle products?

here is what I have in “addtocart.phtml” however I’m not a programmer and don’t know how to make it look for a “bundle” and if bundle don’t show quantity field.

<?php $_product = $this->getProduct() ?>

<?php if($_product->isSaleable()): ?>
<fieldset class="add-to-cart">
<legend><?php echo $this->__('Add Items to Cart') ?></legend>
<?php if(!$_product->isGrouped()): ?>
<label for="qty"><?php echo $this->__('QTY') ?>:</label>
<input type="text" class="input-text qty” name="qty" id="qty" maxlength="12" value="<?php echo $this->getMinimalQty($_product) ?>” />
<?php endif; ?>
<button class="button" onclick="productAddToCartForm.submit()"><span><?php echo $this->__('Add to Shopping Bag') ?></span></button>
</fieldset>
<?php endif; ?>

 
Magento Community Magento Community
Magento Community
Magento Community
 
tzyganu
Mentor
 
Total Posts:  1555
Joined:  2009-11-18
Bucharest, Romania
 

modify this

<?php if(!$_product->isGrouped()): ?>
<label for="qty"><?php echo $this->__('QTY'?>:</label>
<
input type="text" class="input-text qty” name="qty" id="qty" maxlength="12" value="<?php echo $this->getMinimalQty($_product?>” />
<?php endif; ?>
to this
<?php if(!$_product->isGrouped() && $_product->getTypeId() != Mage_Catalog_Model_Product_Type::TYPE_BUNDLE): ?>
<label for="qty"><?php echo $this->__('QTY'?>:</label>
<
input type="text" class="input-text qty” name="qty" id="qty" maxlength="12" value="<?php echo $this->getMinimalQty($_product?>” />
<?php endif; ?>

 Signature 

It’s not a bug. It’s a feature.
http://marius-strajeru.blogspot.com/

 
Magento Community Magento Community
Magento Community
Magento Community
 
shawnlan
Member
 
Total Posts:  32
Joined:  2010-09-10
 

set maximum allow qty to 1

 
Magento Community Magento Community
Magento Community
Magento Community
 
Philster53142
Member
 
Total Posts:  67
Joined:  2009-10-03
 
shawnlan - 04 November 2010 02:28 PM

set maximum allow qty to 1

Bundles don’t have a maximum allow qty. I just checked.  Simple products do.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
819302 users|1045 users currently online|519551 forum posts