The Home for Magento 2 Excellence

Automated build tests for Magento 2 modules. Explore. Evaluate. Elevate. #magento2

1062 Modules
667 Ready
394 Need Help
Vendors 🏆 Leaderboard
Actively Maintained v1.0.13 MIT

Panth Disable Wishlist & Compare

mage2kishan/module-disable-wishlist-compare 22

Completely removes Magento 2 Wishlist and Compare features across the entire frontend — buttons, links, sidebars, cart row actions, account tabs, widget links, JS handlers, and direct URL routes — via admin toggles with no theme edits. Works on Hyva and Luma.

34
Downloads
Below average
0
GitHub Stars
1d ago
Last Release
0
Open Issues
Build Issues
0/3 checks passed

Build Tests

Composer Install
– DI Compile
– Templates

Code Quality

CS Coding Standard
– PHPStan

Release Discipline

Follows SemVer · 100% What is this?

Release history audited up to v1.0.13

Tested on Magento 2.4.9

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.0.13 on Magento 2.4.9
Oct 30, 2026
v1.0.12 on Magento 2.4.9
Oct 3, 2026
v1.0.11 on Magento 2.4.9
Oct 1, 2026
v1.0.10 on Magento 2.4.9
Sep 30, 2026
v1.0.9 on Magento 2.4.9
Sep 29, 2026
v1.0.8 on Magento 2.4.9
Sep 29, 2026

+5 older tests

Looking for Contributors

Composer installation fails. Your contribution could help the entire Magento community!

Contribute

Share This Module's Status

Panth Disable Wishlist & Compare Magento compatibility status badge

README

Loaded from GitHub

Magento 2 Disable Wishlist and Compare

Removes the Wishlist and Compare Products features from the Magento 2 storefront. It hides every wishlist and compare link, button, icon and sidebar that Magento and the Hyva theme render, and answers direct requests to /wishlist/* and /catalog/product_compare/* with a 404. Everything is controlled from the admin configuration, with no theme changes required.

Typical users are stores that sell a small range of products, B2B and wholesale catalogues, and merchants who want to remove unused storefront features cleanly. Works with the Hyva and Luma themes.

Product page: kishansavaliya.com/magento-2-disable-wishlist-compare.html

Features

  • Master switch plus separate toggles for Wishlist and Compare, so either feature can be disabled on its own.
  • Removes the header wishlist and compare links and icons, the "My Wish List" entry in the Hyva header customer menu, the wishlist and compare sidebars, and the customer account "My Wish List" tab.
  • Removes "Add to Wish List" and "Add to Compare" from the product page (including bundle products), and from the related, upsell and cross-sell sections.
  • Removes the add-to-wishlist and add-to-compare controls from category listings and search results (Luma and Hyva).
  • Removes "Move to Wishlist" from every cart item type (simple, configurable, bundle, grouped, downloadable, virtual).
  • Returns 404 for direct requests to /wishlist/* and /catalog/product_compare/* (optional). AJAX and POST requests receive a small JSON response instead of an error page.
  • Settings can be set per default, website or store view scope.
  • No database tables, no cron jobs and no console commands.

Compatibility

Magento Open Source / Adobe Commerce 2.4.4 to 2.4.8
PHP 8.1, 8.2, 8.3, 8.4
Themes Hyva and Luma

The Composer package requires magento/framework ^103.0, magento/module-backend ^102.0, magento/module-catalog ^104.0, magento/module-config ^101.2, magento/module-store ^101.1 and magento/module-wishlist ^101.0.

Requirements

  • Magento 2.4.4 or later
  • PHP 8.1 to 8.4
  • mage2kishan/module-core (installed automatically by Composer; provides the shared "Panth Extensions" admin tab and menu)

Installation

composer require mage2kishan/module-disable-wishlist-compare
bin/magento module:enable Panth_Core Panth_DisableWishlistCompare
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

setup:di:compile is only needed in production mode. The module ships no static assets, so no static content deployment is required.

Check the result with:

bin/magento module:status Panth_DisableWishlistCompare

Configuration

Go to Stores > Configuration > Panth Extensions > Disable Wishlist & Compare.

Setting Default What it does
Module Enabled Yes Master switch. When set to No the runtime plugins and route blocking are off and stock Wishlist and Compare behave normally.
Disable Wishlist Yes Hides every wishlist link, icon, button and sidebar on the storefront.
Disable Compare Yes Hides every compare link, icon, button and sidebar on the storefront.
Block Direct URL Access Yes Returns 404 when /wishlist/* or /catalog/product_compare/* is requested directly.

All four settings are available at default, website and store view scope. Configuration paths: panth_disable_wc/general/enabled, panth_disable_wc/general/disable_wishlist, panth_disable_wc/general/disable_compare, panth_disable_wc/general/block_routes.

The layout removals follow these settings: the wishlist blocks are removed only while Module Enabled and Disable Wishlist are both Yes, and the compare blocks only while Module Enabled and Disable Compare are both Yes. Setting Module Enabled to No brings back the stock wishlist and compare UI. Clean the layout and full page caches after changing a setting.

Admin configuration

Usage

Once installed and enabled, nothing else needs to be done: the storefront no longer shows any wishlist or compare controls on Hyva or Luma, and direct links to the wishlist and compare pages return 404 while "Block Direct URL Access" is on.

How it works:

  • An observer on layout_load_before adds the panth_disable_wc_wishlist layout handle when the wishlist is disabled and the panth_disable_wc_compare handle when compare is disabled. These handles remove the wishlist and compare blocks that Magento and Hyva declare (header links and icons, the Hyva header customer menu link, sidebars, account tab, product page, category and search listings, cart item actions) and set the Hyva header's show_wishlist and show_compare arguments to false.
  • A plugin on Magento\Wishlist\Helper\Data makes isAllow() and isAllowInCart() return false, so any block that asks the helper before rendering stays hidden.
  • A plugin on Magento\Catalog\Block\Product\AbstractProduct returns empty add-to-wishlist and add-to-compare URLs, which hides the buttons in Luma widget templates.
  • Plugins on Hyva\Theme\ViewModel\Wishlist and Hyva\Theme\ViewModel\ProductCompare make their display methods return false. On a Luma-only store these classes are never loaded, so the plugins have no effect there.
  • An observer on controller_action_predispatch_wishlist and plugins on Magento\Wishlist\Controller\AbstractIndex, the shared wishlist Allcart and Cart controllers and Magento\Catalog\Controller\Product\Compare turn direct requests into a 404 before the customer login redirect can happen.

If a third-party module renders its own wishlist or compare button through a custom block, remove that block with a <referenceBlock name="..." remove="true"/> in your theme's layout, or open an issue on GitHub.

Developer Notes

  • Module name: Panth_DisableWishlistCompare
  • Composer package: mage2kishan/module-disable-wishlist-compare
  • PHP namespace: Panth\DisableWishlistCompare
  • Config helper: Panth\DisableWishlistCompare\Helper\Config (isEnabled(), isWishlistDisabled(), isCompareDisabled(), isRouteBlockingEnabled())
  • ACL resource for the configuration section: Panth_DisableWishlistCompare::config

Uninstallation

To restore the wishlist and compare UI while keeping the package installed, set Module Enabled to No and clean the caches, or disable the module:

bin/magento module:disable Panth_DisableWishlistCompare
bin/magento cache:flush

To remove the package:

bin/magento module:disable Panth_DisableWishlistCompare
composer remove mage2kishan/module-disable-wishlist-compare
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

The module creates no database tables, so nothing is left behind.

Support

License

Free and open source under the MIT License. See LICENSE.txt.

Changelog

See CHANGELOG.md.

Links

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.