Download the PHP package mage2kishan/module-disable-wishlist-compare without Composer

On this page you can find all versions of the php package mage2kishan/module-disable-wishlist-compare. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-disable-wishlist-compare

Magento 2 Disable Wishlist and Compare Extension (Hyva + Luma)

Magento 2.4.4 - 2.4.8 PHP 8.1 - 8.4 Hyva + Luma Live Demo & Details Packagist Upwork Top Rated Plus Website

A single module that removes Wishlist and Compare from every surface of your Magento 2 store. It covers header icons, product detail buttons, category list buttons, cart row actions, customer account tabs, sidebar blocks, widget links, and direct URL routes. Works on both Hyva and Luma with no theme edits needed.

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


Quick Answer

What is Panth Disable Wishlist and Compare? It is a Magento 2 extension that gives you a clean admin toggle to remove Wishlist and Compare from every part of the frontend, including all buttons, links, sidebars, and direct URL routes.

What does it add to my store?

Which themes are supported? Both Hyva (Alpine.js) and Luma. The right plugins activate automatically based on which theme is in use.

What does it need? Magento 2.4.4 to 2.4.8, PHP 8.1 to 8.4, and the free mage2kishan/module-core package.


Need Custom Magento 2 Development?

Get a free quote for your project in 24 hours for custom modules, Hyva themes, performance work, M1 to M2 migrations, and Adobe Commerce Cloud.

Get a Free Quote

### Kishan Savaliya **Top Rated Plus on Upwork** [![Hire on Upwork](https://img.shields.io/badge/Hire%20on%20Upwork-Top%20Rated%20Plus-14a800?style=for-the-badge&logo=upwork&logoColor=white)](https://www.upwork.com/freelancers/~016dd1767321100e21) 100% Job Success - 10+ Years Magento Experience Adobe Certified - Hyva Specialist ### Panth Infotech Agency **Magento Development Team** [![Visit Agency](https://img.shields.io/badge/Visit%20Agency-Panth%20Infotech-14a800?style=for-the-badge&logo=upwork&logoColor=white)](https://www.upwork.com/agencies/1881421506131960778/) Custom Modules - Theme Design - Migrations Performance - SEO - Adobe Commerce Cloud

Visit our website: kishansavaliya.com  |  Get a quote: kishansavaliya.com/get-quote


Table of Contents


Who Is It For


Key Features

Admin Toggles for Everything

Complete Wishlist Removal

Complete Compare Removal

Hyva and Luma Ready

Built to Last


Compatibility

Requirement Versions Supported
Magento Open Source 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce Cloud 2.4.4 to 2.4.8
PHP 8.1.x, 8.2.x, 8.3.x, 8.4.x
Hyva Theme 1.0+ (fully compatible)
Luma Theme Native support
Required Dependency mage2kishan/module-core (free)

Installation

Composer Installation (Recommended)

Manual Installation via ZIP

  1. Download the latest release from Packagist or from the product page.
  2. Extract it to app/code/Panth/DisableWishlistCompare/ in your Magento install.
  3. Make sure Panth_Core is installed too (required dependency).
  4. Run the commands above starting from bin/magento module:enable.

Verify Installation

After install, open:


Configuration

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

Setting Group Default Description
Module Enabled General Yes Master switch. If No, all runtime plugins are disabled and stock Wishlist/Compare behave normally.
Disable Wishlist General Yes Hides every wishlist link, icon, button, and sidebar on the frontend.
Disable Compare General Yes Hides every compare link, icon, button, and sidebar on the frontend.
Block Direct URL Access General Yes Returns 404 when anyone hits /wishlist/* or /catalog/product_compare/* directly.

Note on layout removals: Layout XML removals apply whenever the module is enabled at the CLI level. The admin toggles above control only the runtime plugins and route blocking. To restore the UI while keeping the module installed, disable the module via CLI.


How It Works

The module uses six complementary mechanisms so every rendering path is covered.

  1. Layout XML removes on default, catalog_product_view, catalog_category_view, catalog_list_item, catalogsearch_result_index, catalogsearch_advanced_result, and checkout_cart_index. Every named wishlist and compare block that Magento core and Hyva declare is removed here.
  2. Header argument override - Hyva's header.phtml gates the compare and wishlist icons on show_compare and show_wishlist arguments of the header-content block. Both are forced to false.
  3. Helper plugin on Magento\Wishlist\Helper\Data::isAllow() and isAllowInCart() forces false so any third-party block that checks the helper drops out silently.
  4. Block plugin on Magento\Catalog\Block\Product\AbstractProduct::getAddToCompareUrl() and getAddToWishlistUrl() returns an empty string, which breaks the conditional gates in every Luma widget template without any template overrides.
  5. Hyva ViewModel plugins on Hyva\Theme\ViewModel\Wishlist and Hyva\Theme\ViewModel\ProductCompare force all display methods to false.
  6. Route blocking - a predispatch observer for controller_action_predispatch_wishlist runs before the customer session auth redirect, so /wishlist/* returns a 404. A controller plugin on Magento\Catalog\Controller\Product\Compare::execute blocks compare routes. AJAX and POST requests return a JSON stub so stale JS listeners fail quietly.

Restoring the UI

Option A - keep the module, restore UI:

Option B - uninstall entirely:


Preview

Admin Configuration

Stores -> Configuration -> Panth Extensions -> Disable Wishlist & Compare - four toggles, all defaulting to Yes, applied immediately after cache flush.


FAQ

Does this work on Hyva themes?

Yes. The module ships dedicated Hyva ViewModel plugins for both Hyva\Theme\ViewModel\Wishlist and Hyva\Theme\ViewModel\ProductCompare, plus the header argument override that removes the icons from the Hyva header. It requires no Alpine.js changes or template overrides.

Does it work on Luma too?

Yes. Layout XML removals, block plugins, and helper plugins cover every Luma surface including sidebars, widget templates, and cart row actions. The module detects which plugins are needed at runtime.

What if I only want to disable Wishlist but keep Compare active?

Turn on "Disable Wishlist" and leave "Disable Compare" set to No in the admin. Each feature is controlled by its own toggle.

Will /wishlist/ redirect to login instead of showing a 404?

No. The predispatch observer fires before the customer session auth check, so the route returns a proper 404 rather than a 302 redirect to the login page. Set "Block Direct URL Access" to No if you want the routes accessible without the frontend UI.

Does a third-party module that adds its own wishlist button still show?

The module plugs every Magento core integration point. If a third-party module renders its own button via a custom block that bypasses those points, add a <referenceBlock name="..." remove="true"/> in a child theme layout override or open a GitHub issue.

Does the layout XML apply even when the admin toggle is No?

Layout XML removals are module-level and apply whenever the module is enabled at the CLI. The admin toggles control only the runtime plugins and route blocking. To fully restore the UI, disable the module via bin/magento module:disable.

Does it create any database tables?

No. The module has no database schema. All behavior is handled through plugins, observers, and layout XML.

Can I use it on a multi-store setup?

Yes. All admin settings are available at default, website, and store view scope, so you can disable wishlist on one store view and leave it active on another.

Does it need Panth Core?

Yes. mage2kishan/module-core is a free required dependency that Composer installs automatically. It provides the shared admin tab and menu parent.


Support

Channel Contact
Product Page kishansavaliya.com/magento-2-disable-wishlist-compare.html
Email [email protected]
Website kishansavaliya.com
WhatsApp +91 84012 70422
GitHub Issues github.com/mage2sk/module-disable-wishlist-compare/issues
Upwork (Top Rated Plus) Hire Kishan Savaliya
Upwork Agency Panth Infotech

Response time: 1-2 business days.

Need Custom Magento Development?

Looking for custom Magento module development, Hyva theme work, store migrations, or performance tuning? Get a free quote in 24 hours:

Get a Free Quote

Hire on Upwork    Visit Agency    View Product Page


About Panth Infotech

Built and maintained by Kishan Savaliya (kishansavaliya.com), a Top Rated Plus Magento developer on Upwork with 10+ years of eCommerce experience.

Panth Infotech is a Magento 2 development agency that builds high quality, security focused extensions and themes for both Hyva and Luma storefronts. The extension suite covers SEO, performance, checkout, product presentation, customer engagement, and store management, with each module built to MEQP standards and tested across Magento 2.4.4 to 2.4.8.

Browse the full extension catalog on our Magento extensions page or on Packagist.


Quick Links

Resource Link
Product Page magento-2-disable-wishlist-compare.html
Packagist mage2kishan/module-disable-wishlist-compare
GitHub mage2sk/module-disable-wishlist-compare
Website kishansavaliya.com
Free Quote kishansavaliya.com/get-quote
Upwork (Top Rated Plus) Hire Kishan Savaliya
Upwork Agency Panth Infotech
Email [email protected]
WhatsApp +91 84012 70422

Want to remove Wishlist and Compare from your store?
See Disable Wishlist and Compare


SEO Keywords: magento 2 disable wishlist, magento 2 disable compare, magento 2 remove wishlist button, magento 2 hide wishlist, magento 2 hide compare, magento 2 disable wishlist extension, magento 2 disable compare module, magento 2 remove compare products, hyva disable wishlist, hyva disable compare, luma disable wishlist, luma disable compare, magento 2 wishlist toggle, magento 2 compare toggle, magento 2 disable wishlist compare module, magento 2 remove wishlist link, magento 2 block wishlist url, magento 2 404 wishlist, magento 2 frontend cleanup, magento 2.4.8 disable wishlist, php 8.4 disable wishlist, mage2kishan disable wishlist compare, panth disable wishlist, panth infotech, hire magento developer, top rated plus upwork, kishan savaliya magento, custom magento development


All versions of module-disable-wishlist-compare with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0||~8.2.0||~8.3.0||~8.4.0
magento/framework Version ^103.0
magento/module-catalog Version ^104.0
magento/module-wishlist Version ^101.0
mage2kishan/module-core Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mage2kishan/module-disable-wishlist-compare contains the following files

Loading the files please wait ...