Disable Wishlist & Compare for Magento 2
Control wishlist and product comparison separately by store view. Remove covered storefront controls and choose whether to block the registered direct requests.
- Free
- Themes listed: Hyvä + Luma
composer require mage2kishan/module-disable-wishlist-compare
- Package requirementsRead the source documentation
- Developer profileView Upwork profile
- Themes listedHyvä + Luma
- PHP versions listed8.1, 8.2, 8.3, 8.4
- Installation questionsDiscuss your store setup
What it does for your store
The main features, as listed in the module documentation.
-
Choose each feature separately
Disable wishlist, compare or both, with a master switch for this module's gates.
-
Review store-view settings
Set and check the feature flags in the intended store scope, including inherited values.
-
Remove covered storefront controls
Apply helper, block and layout gates to named wishlist and compare controls, then check your theme.
-
Handle covered direct requests
Enable route blocking for disabled features, with not-found handling for normal requests and unsuccessful JSON responses for covered AJAX or POST actions.
Installation
Example commands from the Magento root. Follow the package instructions and your staging and deployment process.
- 1Check the releaseMatch Magento, PHP, theme and dependency requirements.
- 2Install on stagingReview Composer changes and follow the package instructions.
- 3Configure and verifyUse the documented settings and test the affected features.
$ composer require mage2kishan/module-disable-wishlist-compare $ bin/magento setup:upgrade $ bin/magento setup:di:compile $ bin/magento setup:static-content:deploy -f $ bin/magento cache:clean
Listed requirements
These are the details supplied in this listing. Confirm the selected release supports your Magento edition, PHP and storefront.
| Magento versions listed | 2.4.6, 2.4.7, 2.4.8 |
|---|---|
| PHP versions listed | 8.1, 8.2, 8.3, 8.4 |
| Themes listed | Hyvä, Luma |
| Composer package | mage2kishan/module-disable-wishlist-compare |
Documentation
Product details and setup guidance. Check the package repository for release-specific instructions.
Choose whether wishlist and compare belong in your store
Disable Wishlist & Compare gives you separate controls for Magento's wishlist and product-comparison features. Use it when those actions do not fit the way your customers shop, or when you want to keep one feature and remove the other from the storefront.
Choose the change you need before enabling it. Removing wishlist or compare controls changes familiar shopping paths, so check your product cards, product pages, header and customer account as part of the decision.
Control each feature by store view
The module has a master switch, separate Disable Wishlist and Disable Compare settings, and a Block Direct URL Access setting. The flags are read in the current store scope, allowing you to review the intended configuration for each store view.
Version 1.0.13 supplies enabled defaults for all four settings. Those are package defaults; check the effective values and inherited configuration in your own store before releasing the change.
- Disable wishlist controls while keeping comparison available, or choose the reverse.
- Use the master switch to stop this module applying its feature gates.
- Decide whether to block the covered direct wishlist and compare requests.
- Check each store view with guest and signed-in shopping journeys.
Remove covered controls and handle direct requests
The implementation combines layout removals with wishlist-helper and product-link plugins. It targets named header, sidebar, product-list, product-page and cart controls, rather than relying only on hiding an icon in one template.
With direct-route blocking enabled for a disabled feature, covered normal requests are sent to not-found handling. Covered AJAX or POST requests receive a JSON response with success set to false. Test links and actions already present in your header, widgets or custom integrations.
These gates cover the registered Magento controllers and wishlist route observer. Custom endpoints, third-party lists and separate API integrations need their own review before you rely on the same behaviour.
Check your theme and existing shopping paths
The package includes plugins for Hyva wishlist and product-compare view models as well as Magento helper, block and layout integration used by standard storefronts. A custom theme can render different controls, so verify the actual header and product markup on staging.
Switching off this module stops its own gates; Magento settings and other extensions can still affect wishlist or compare availability. Recheck those settings when restoring a feature.
Review the change with real product lists, cart items and account navigation. Measure page behaviour with your normal theme and extensions if performance is a concern.
Installation and requirements
Version 1.0.13 is supplied as mage2kishan/module-disable-wishlist-compare. It requires mage2kishan/module-core ^1.0 and declares PHP 8.1, 8.2, 8.3 and 8.4 constraints plus Magento package dependencies. Resolve the complete dependency set for your Magento release before installation.
From the Magento root on staging, install with composer require mage2kishan/module-disable-wishlist-compare. Check bin/magento module:status Panth_Core Panth_DisableWishlistCompare and enable those modules if needed before your normal upgrade, compilation and static-content deployment steps. Use bin/magento cache:clean after deployment.
Open Stores > Configuration > Panth Extensions > Disable Wishlist & Compare to review the four switches in the intended scope. The Admin shortcut is Panth Infotech > Disable Wishlist & Compare.
For help checking a custom theme or planning installation, contact Kishan. Installation and customisation services are separate arrangements with an agreed scope and fee.
Developer integration
Panth\DisableWishlistCompare\Helper\Config exposes the current feature decisions through isEnabled(), isWishlistDisabled(), isCompareDisabled() and isRouteBlockingEnabled(). Review those decisions alongside your custom templates and routes when integrating another storefront component.
The package uses panth_disable_wc_wishlist and panth_disable_wc_compare layout handles for named-block changes. Read the package README alongside your selected release, and check the registered plugins and observers before adapting a custom header or action.
| Module Category | Theme & UI |
|---|---|
| Best For | All Sizes |
Changelog
-
1.0.2
- ACL XML duplicate resource-id error that prevented the admin config page from loading (Panth_X::config was declared under both Panth_Core::panth_extensions and Magento_Config::config). The redundant declaration under Panth_Core::panth_extensions has been removed; the menu link continues to gate on the real system-config resource.
-
1.0.1
- Admin-config section now appears in the same Panth Infotech tab as the rest of the Panth modules. v1.0.0 declared its own panth_infotech tab with sortOrder 999, which pushed it to the bottom of the admin nav away from all the other Panth_ modules. Switched to the shared panth tab declared by Panth_Core so it sits alongside Core, Extra Fee, AdvancedSEO, and the rest.
- Added etc/adminhtml/menu.xml with a direct link under Panth Infotech → Disable Wishlist & Compare that jumps straight to the config section. Matches the menu pattern every other Panth_ module uses.
- Panth_Core as a required dependency (mage2kishan/module-core: ^1.0). Needed because the shared panth admin tab and the Panth_Core::panth_extensions menu parent are both declared by Panth_Core. Module sequence and composer require updated.
- Admin-configuration screenshot (docs/admin-configuration.png) and a Preview section in the README showing the four toggles.
-
1.0.0, Initial release
- Admin config section Panth Infotech → Disable Wishlist & Compare with four toggles: master enable, disable wishlist, disable compare, block direct URL access. All default to Yes.
- Layout XML removals on the common handles (default, catalog_product_view, catalog_category_view, checkout_cart_index, customer_account) for every wishlist + compare block the audit identified, header links, sidebars, PDP add-to buttons (incl. related/upsell), category-list add-to icons, cart "Move to Wishlist" row action, customer-account side nav tab, and Hyva's header-compare icon. All gated by ifconfig so the admin toggles actually take effect without a re-compile.
- Plugin on Magento\Wishlist\Helper\Data::isAllow() / isAllowInCart() that forces false when wishlist is disabled. Drops any stray wishlist widget or third-party UI that asks the helper before rendering.
- Plugin on Hyva\Theme\ViewModel\Wishlist::isEnabled() / isAllowInCart() and Hyva\Theme\ViewModel\ProductCompare::show that returns false when the respective feature is disabled. Harmless on Luma-only stores
Questions before you install?
Send me your composer.json and I will check for conflicts first. Free. Installation is +$45, custom work is quoted first.