PHPackages                             eboosttech/magento2-disable-compare-products - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. eboosttech/magento2-disable-compare-products

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

eboosttech/magento2-disable-compare-products
============================================

Disable compare products functionality

1.0.0(2y ago)11BSD-4-ClausePHP

Since Mar 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/eboost10/magento2-disable-compare-products)[ Packagist](https://packagist.org/packages/eboosttech/magento2-disable-compare-products)[ RSS](/packages/eboosttech-magento2-disable-compare-products/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

EBoost - Disable Compare Products
=================================

[](#eboost---disable-compare-products)

This simple module adds a new config value to the Catalog Recently Viewed/Compared Products admin section, allowing you to remove the compare products functionality.

It will remove product compare from:

- Category view sidebar
- Category view product list
- Product view
- Search results product list
- My account sidebar

Installation
------------

[](#installation)

Require the module

```
composer require eboosttech/magento2-disable-compare-products
```

Enable the module

```
php bin/magento module:enable EBoost_DisableCompareProducts
```

Run setup to install module and set up table(s)

```
php bin/magento setup:upgrade
```

Usage
-----

[](#usage)

Once installed, you can choose to disable the compare products functionality at `Stores > Settings > Configuration > Catalog > Catalog > Recently Viewed/Compared Products` then choosing yes or no from the new config option `Disable Compare Products`.

***Note: By default this option is set to no. Set it to yes and clear any caches to see the results.***

[![Catalog Options Screenshot](docs/catalog-options-screenshot.png)](docs/catalog-options-screenshot.png)

OR run command to disable compare products

```
php bin/magento config:set catalog/recently_products/disable_compare 1
```

How it works
------------

[](#how-it-works)

Removing layout items is not trivial when doing so based on a config value. Therefore I have had to add an observer that adds a new layout handle `gl_remove_compare_products` to the page when the module config value is set to yes.

This will have a small performance impact, so if performance is everything then use the traditional route of adding these handles manually to your theme.

You can see the layout changes made in the `view/frontend/layout/gl_remove_compare_products.xml` file.

Can you also disable the wishlist?
----------------------------------

[](#can-you-also-disable-the-wishlist)

This is a native Magento 2 feature. Just go to `Stores > Settings > Configuration > Customers > Wishlist > General Options` and change `enabled` to no.

Bugs/Feature Requests &amp; Contribution
----------------------------------------

[](#bugsfeature-requests--contribution)

Please do open a pull request on GitHub should you want to contribute, or create an issue.

License
-------

[](#license)

[BSD-4-Clause](http://directory.fsf.org/wiki/License:BSD_4Clause) - Do as you wish 👍

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

788d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b21c3da297e9b82a4d7b0c5b0f97d13a001d4d3e2f6a29496f7339886c5de6d?d=identicon)[eboost10](/maintainers/eboost10)

---

Top Contributors

[![eboost10](https://avatars.githubusercontent.com/u/137137427?v=4)](https://github.com/eboost10 "eboost10 (8 commits)")[![vquangluong](https://avatars.githubusercontent.com/u/33086667?v=4)](https://github.com/vquangluong "vquangluong (6 commits)")

### Embed Badge

![Health badge](/badges/eboosttech-magento2-disable-compare-products/health.svg)

```
[![Health](https://phpackages.com/badges/eboosttech-magento2-disable-compare-products/health.svg)](https://phpackages.com/packages/eboosttech-magento2-disable-compare-products)
```

###  Alternatives

[m6web/tornado

A library for asynchronous programming.

8155.2k](/packages/m6web-tornado)[adsmurai/currency

A small library to handle currencies and money values

4542.1k](/packages/adsmurai-currency)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
