Magento 2 provides compare products functionality out of the box. But not every store needs this feature. Unfortunately, there is no simple way to disable compare products in Magento. This simple extension will allow you to remove compare products feature. The main advantage of this module is that it doesn’t use template rewrites or modifications, so it can be used on different themes.
Unpack the archive. You will be able to find src directory in the root folder. Copy contents of the src directory to the root directory of your Magento installation.
Connect via SSH and run the following commands in the root folder:
php bin/magento module:enable Magery_DisableCompare php bin/magento setup:upgrade
Then clear the cache. Go to admin page under System - Cache Management and press Flush Magento Cache button.
Now the module is enabled in the system and it is ready to be configured and used.
Configuration of the module is pretty simple. In Magento admin navigate to Stores - Configuration - Catalog - Catalog. In the Storefront section, you will see the new dropdown Disable Compare Products. Just set the value to Yes and save the config. You can manage this setting on the store level (for example if you want to disable compare functionality for the one store, and leave it turned on for another store).
After clearing the cache compare product functionality will be disabled for the desired store.
Customer Reviews 5 item(s)
- Works perfectly!
Installed the extension, enabled it, cleared the cache - and voila! Compare products feature is disabled :)
- Works as expected
Inexpensive but so useful extension for M2!
Works as expected :)
- Quick support
I had one issue because of the custom theme, but support response was very quick and they managed to help me with fixing the issue within 30 minutes.
Good job guys!
- Works good!
Real time saver for a developer, works like a charm!
- Great extension
I have used this module on my Magento 2.1.3 installation - works great! It simply removes comparison feature from all the places.
- Change Log
Version: 1.1.1 (16.01.2017)
Improved compatibility with custom themes
Version: 1.1.0 (09.01.2017)
Refactoring, added support for both Magento branches (2.0 and 2.1)
Version: 1.0.3 (06.01.2017)
Fix for prices in some locales
Version: 1.0.2 (03.01.2017)
Version: 1.0.1 (29.11.2016)
Minor improvements (compatibility with Magento Marketplace requirements)
Version: 1.0.0 (20.06.2016)
Initial stable release