Search the articles in our knowledge base!

How to disable the Compare products functionality?

You can disable the Compare products functionality using a Magento extension which should be installed additionally or by manually editing two of the Magento core files.

1. By installing an extension:

You can install the following Magento extension for your application called ET Advanced Compare:

http://www.magentocommerce.com/magento-connect/niro/extension/6455/et_advancedcompare

This will add an option to  your Magento administrative area which allows you to disable the Compare feature with just few clicks of your mouse. Detailed instructions about the installation can be found on the extension page above.

After the installation, the Compare feature can be turned off through your Magento admin area -> System -> ET Extensions -> Advanced Compare -> Remove Compare Option.

2. By manually editing two of the Magento core files:

  • First, create a backup of these files in order to avoid any application crashes and data loss!

The file called Compare.php is situated inside the folder ~/app/code/core/Mage/Catalog/Helper/Product/. The other file is called catalog.xml and it is situated inside the folder ~/app/design/frontend/base/default/layout/

  • Edit ~/app/code/core/Mage/Catalog/Helper/Product/Compare.php and change the following code:

to:

  • 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:

to:

  • When you are ready flush the Magento cache through your Magento admin area -> System -> Cache Management.
You need help with a shopping cart? SiteGround is specialized in eCommerce hosting and provides expert support for a large number of shopping carts. Check out our shopping cart hosting services!
VN:F [1.9.22_1171]
Rating: 3.4/5 (5 votes cast)
How to disable the Compare products functionality?, Rating 3.4 out of 5 based on 5 votes