Skip to main content

Disable Compare

Extension Installation

For Magento Marketplace Customers

  • Find the Composer name and version of the extension in the extension's composer.json file.

  • Login to your SSH and run:

    • composer require mavenbird/magento-2-disable-compare
    • Wait for Composer to finish updating your project dependencies and make sure there aren't any errors.
  • To verify that the extension installed properly, run the command:

    • php bin/magento module:status Mavenbird_FrontendCancelOrder
    • By default, the extension is probably disabled.
    • Enable the extension and clear static view files:
    • php bin/magento module:enable Mavenbird_DisableCompare --clear-static-content
    • php bin/magento setup:upgrade
    • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
    • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy --f
    • php bin/magento cache:flush

For Mavenbird Customers

  • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
  • Login to your SSH and run below commands step by step:
    • php bin/magento setup:upgrade
    • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
    • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy --force
    • php bin/magento cache:flush

Configuration

  • To configure the Disable Compare extension:
    1. Log in to the Magento Backend.
    2. Go to Stores > Configuration.
    3. Under the General tab, select Disable Compare.
    4. Here, you can configure the following settings:
      • Enable Disable Compare: Enable and Disable the Disable Compare extension.

Disable Compare Configuration


Frontend Disable Compare

  • Remove all product compare buttons from product and category pages.
  • Disable compare links on search results and other listing pages.
  • Prevent customers from adding products to the compare list.
  • Ensure a consistent user experience across the entire storefront.
  • Works without modifying Magento core files or templates.
  • Easy to enable or disable directly from the admin panel.

Disable Compare Configuration