PHPackages                             galacticlabs/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. galacticlabs/disable-compare-products

ActiveMagento2-module

galacticlabs/disable-compare-products
=====================================

Disable compare products functionality

1.0.1(7y ago)1664.2k↓46.1%3[1 PRs](https://github.com/galacticlabs/disable-compare-products/pulls)MITPHP

Since Dec 14Pushed 1y ago1 watchersCompare

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

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

Galactic Labs - Disable Compare Products
========================================

[](#galactic-labs---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 galacticlabs/disable-compare-products
```

Enable the module

```
php bin/magento module:enable GalacticLabs_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)

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)

[MIT](https://opensource.org/licenses/MIT) - Do as you wish 👍

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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

Every ~160 days

Total

2

Last Release

2917d ago

### Community

Maintainers

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

---

Top Contributors

[![alanablett](https://avatars.githubusercontent.com/u/1838355?v=4)](https://github.com/alanablett "alanablett (4 commits)")[![flancer64](https://avatars.githubusercontent.com/u/5052385?v=4)](https://github.com/flancer64 "flancer64 (1 commits)")

---

Tags

magento2magento2-module

### Embed Badge

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

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

PHPackages © 2026

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