Go Back   Cloud Computing > Support > Tutorials and Documentation
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-30-11, 02:51
BOD Member
 
Join Date: Jan 2011
Posts: 182
Default Disable the Compare products functionality in Magento

I want to disable the Compare products functionality in Magento. Can I do that?
If “Yes”, then how can I do that?
Reply With Quote
  #2 (permalink)  
Old 11-30-11, 03:21
Moderator
 
Join Date: Nov 2010
Posts: 476
Default

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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 00:16.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.