0

Remove this Qty option from cart pageBookstore

  • Can please let me know how to do? – Akash Gaonkar Jul 28 '16 at 9:40
  • enable template hint and check from which file the content is loading – Pradeep Sanku Jul 28 '16 at 9:41
  • template hint? i dint get you – Akash Gaonkar Jul 28 '16 at 9:42
1

Go to app/design/frontend/<theme-package>/<theme>/template/checkout/cart/item/default.phtml and find and either comment out or remove below code:

<td class="a-center">
    <input name="cart[<?php echo $_item->getId() ?>][qty]"
           data-cart-item-id="<?php echo $this->jsQuoteEscape($_item->getSku()) ?>"
           value="<?php echo $this->getQty() ?>" size="4" title="<?php echo $this->__('Qty') ?>" class="input-text qty" maxlength="12" />
</td>
1

Go to app/design/frontend/package/theme/template/checkout/cart/item/default.phtml

And if file not exist to copy from app/design/frontend/base/default/template/checkout/cart/item/default.phtml

and comment below code

<td class="product-cart-actions" data-rwd-label="<?php echo $this->__('Qty'); ?>">
        <input type="text" pattern="\d*" name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4"
               data-cart-item-id="<?php echo $this->jsQuoteEscape($_item->getSku()) ?>"
               title="<?php echo Mage::helper('core')->quoteEscape($this->__('Qty')) ?>" class="input-text qty" maxlength="12" />

        <button type="submit" name="update_cart_action" data-cart-item-update value="update_qty" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Update')); ?>" class="button btn-update"><span><span><?php echo $this->__('Update'); ?></span></span>
        </button>

        <ul class="cart-links">
            <?php if ($isVisibleProduct): ?>
                <li>
                    <a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Edit item parameters')) ?>"><?php echo $this->__('Edit') ?></a>
                </li>
            <?php endif ?>

            <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>
            <li>
                <?php if ($isVisibleProduct): ?>
                    <a href="<?php echo $this->helper('wishlist')->getMoveFromCartUrl($_item->getId()); ?>" class="link-wishlist use-ajax"><?php echo $this->__('Move to wishlist'); ?></a>
                <?php endif ?>
            </li>
            <?php endif ?>
        </ul>

</td>

Also you need to remove header of quantity

For that go to app/design/frontend/package/theme/template/checkout/cart.phtml

if not file available in theme copy from app/design/frontend/base/defualt/template/checkout/cart.phtml

and comment below code :

<th rowspan="<?php echo $mergedCells; ?>" class="a-center">
                        <?php echo $this->__('Qty') ?>

                        <?php /*if ($this->helper('wishlist')->isAllowInCart()) : ?>
                            <span class="nobr"><?php echo $this->__('Move to Wishlist') ?></span>
                        <?php endif*/ ?>

                    </th>
0

sorry for the inconvenience

please go to this url C:\xampp\htdocs\project\app\design\frontend\base\default\template\downloadable\checkout\cart\item\default.phtml

and comment below code

<td class="a-center">
    <input name="cart[<?php echo $_item->getId() ?>][qty]" value="<?php echo $this->getQty() ?>" size="4"
           title="<?php echo $this->__('Qty') ?>" class="input-text qty" maxlength="12"/>
</td>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.