storeteam / module-disable-compare
Lightweight Magento 2.4.x & Hyvä Theme module to cleanly disable Compare Products across catalog, search, widgets, and customer-data without core edits.
Package info
github.com/Store-Team-company/magento2-disable-compare
Type:magento2-module
pkg:composer/storeteam/module-disable-compare
Requires
- php: ^7.4 || ^8.1 || ^8.2 || ^8.3 || ^8.4
- magento/framework: ^103.0
- magento/module-catalog: ^104.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-11-28 07:36:28 UTC
README
A lightweight, production-safe Magento 2 module that cleanly disables Compare Products across category pages, product pages, sidebars, header links, search results, and Page Builder widgets — without core hacks or broken JavaScript.
Why disable Compare Products?
- Cuts wasted bot crawl budget on
/catalog/product_compare/add/URLs - Reduces DOM clutter next to "Add to Cart" buttons on mobile
- Eliminates redundant KnockoutJS /
customer/section/loadcompare payloads on Luma themes
Full step-by-step documentation (including Hyvä Theme tips): How to Disable Compare Products in Magento 2 — StoreTeam Guide
Compatibility
- Magento Open Source & Adobe Commerce 2.4.3 – 2.4.8+
- PHP 7.4, 8.1, 8.2, 8.3, 8.4
- Works cleanly with Luma, Porto, and Hyvä Theme
Installation via Composer
composer require storeteam/module-disable-compare bin/magento module:enable StoreTeam_DisableCompare bin/magento setup:upgrade bin/magento cache:flush
Manual Installation
- Copy the module files into
app/code/StoreTeam/DisableCompare/. - Run:
bin/magento module:enable StoreTeam_DisableCompare bin/magento setup:upgrade bin/magento cache:flush
Need Magento 2 Speed Optimization or Hyvä Theme Development?
Built & maintained by StoreTeam — Magento 2 & Hyvä Specialist Agency serving US & UK merchants.
License
MIT License