We are trying to remove the "edit" link from the shopping cart for our install. From the searching we have done so far, we have been directed to edit the default.phtml file for our theme.

We have done this however the edit button remains.

We are using Magento CE

The part we have commented out/deleted is

<a href="<?php echo $this->getConfigureUrl() ?>" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Edit item parameters')) ?>"><?php echo $this->__('Edit') ?></a>

Does anyone know a way this can be achieved?


The items in the cart are rendered by different templates depending on the product type.
So you need to edit multiple templates in order to remove that completely.

  • template/checkout/cart/item/default.phtml
  • template/downloadable/checkout/cart/item/default.phtml

But don't remove just the <a> tag. Remove the <td> also that wraps the <a>.

And you need to remove the column header for this column from template/checkout/cart.phtml
Remove <th rowspan="<?php echo $mergedCells; ?>"></th> from above <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>.
and <col width="1" /> from above <?php if ($this->helper('wishlist')->isAllowInCart()) : ?>.

You might also want to remove it from the sidebar cart block

  • template/checkout/cart/sidebar/default.phtml
| improve this answer | |

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.