Thursday, April 4, 2013

To add a remove function to the products on Magento

This post is for myself, but I'm putting it up for those who understand it

Change the following files and you would have to search the section on the pages to add the next:

app\design\frontend\themename\default\template\checkout\cart.phtml

<th><span><?php echo $this->__('Remove') ?></span></th>
app\design\frontend\themename\default\template\checkout\cart\item\default.phtml

<td>
<a href="<?php echo $this->getUrl('checkout/cart/delete', array('id' => $_item->getId())) ?>">Remove</a>
</td>

No comments:

Post a Comment