Magento Expert Forum - Improve your Magento experience

Results 1 to 6 of 6

How to disable the Compare products functionality

  1. #1
    Administrator david's Avatar
    Join Date
    Nov 2012
    Posts
    261
    Thanks
    22
    Thanked 42 Times in 34 Posts

    Lightbulb How to disable the Compare products functionality

    You can disable the Compare products functionality in Magento by following these steps:


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

    public function getAddUrl($product)
    {
    return $this->_getUrl(’catalog/product_compare/add’, $this->_getUrlParams($product));
    }

    to

    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:


    to


    • Flush the Magento cache from your Magento admin area > System > Cache Management.

    View more threads in the same category:


  2. #2
    Junior Member
    Join Date
    Sep 2018
    Location
    Canada
    Posts
    873
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    For instance, there is a worked in highlight to permit clients to think about the items. It is a helpful usefulness on the off chance that you are selling things like

  3. #3
    Junior Member
    Join Date
    Nov 2020
    Location
    united kingdom
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    To disable Wish List functionality, you need to go in the administration, under Stores > Configuration > Customers > Wish List and choose Enabled : No. To disable Compare functionality, there's no option in the administration. You need to override the module-catalog/view/frontend/templates/product/list.

    UK Segways Segways for sale UK
    Buy Hoverboard UK Segways
    Swegways uk

  4. #4
    Junior Member
    Join Date
    Sep 2018
    Location
    Oman, Muscat
    Posts
    2,084
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    To cripple Wish List usefulness, you need to go in the organization, under Stores > Configuration > Customers > Wish List and pick Enabled : No. To debilitate Compare usefulness, there's no choice in the organization. You need to supersede the module-list/see/frontend/layouts/item/list.

Similar Threads

  1. Replies: 2
    Last Post: 20-06-2013, 01:37 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •