Yes You can disable the Compare products functionality in Magento.
You can follow the following steps:
- Edit app/code/core/Mage/Catalog/Helper/Product/Compare.php and change the following code:
Quote:
public function getAddUrl($product)
{
return $this->_getUrl(’catalog/product_compare/add’, $this->_getUrlParams($product));
}
|
to
Quote:
public function getAddUrl($product)
{
//return $this->_getUrl(’catalog/product_compare/add’, $this->_getUrlParams($product)); return false;
}
|
- Edit ./app/design/frontend/base/default/layout/catalog.xml (if you are using a different Magento theme, enter its name instead of default) and change the following code:
Quote:
|
<block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
|
to
Quote:
|
<!-- <block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/> -->
|
Quote:
|
Flush the Magento cache from your Magento admin area > System > Cache Management.
|