PHPackages                             etechflow/module-mega-menu - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. etechflow/module-mega-menu

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

etechflow/module-mega-menu
==========================

Theme-agnostic mega menu for Magento 2. Renders on Hyvä, Luma, Adobe Commerce default and custom themes via automatic runtime detection. Provides a JSON endpoint for lazy-loaded subcategory + featured-product data.

1.2.0(2w ago)001MITPHPPHP &gt;=8.1CI passing

Since Jun 10Pushed 2w agoCompare

[ Source](https://github.com/etechflow/module-etechflow-mega-menu)[ Packagist](https://packagist.org/packages/etechflow/module-mega-menu)[ RSS](/packages/etechflow-module-mega-menu/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

Etechflow\_MegaMenu
===================

[](#etechflow_megamenu)

A theme-agnostic mega menu for Magento 2.

At a glance
-----------

[](#at-a-glance)

- **Themes supported:** Hyvä, Luma, Adobe Commerce default, and any custom theme inheriting from either.
- **No jQuery dependency** in the Luma variant — uses vanilla JS only, so it stays light and works in lean themes.
- **No Knockout / RequireJS** in the Hyvä variant — uses Alpine.js (already shipped with every Hyvä theme).
- **Lazy-loaded data:** dropdown subcategories + featured products are fetched on first hover from a 1-hour-cached JSON endpoint (`/megamenu/products/index?cat=`).
- **Auto theme detection** at runtime — picks the right template per request.

Quick install
-------------

[](#quick-install)

```
# from your Magento root
cp -r /path/to/Etechflow_MegaMenu app/code/Etechflow/MegaMenu
bin/magento module:enable Etechflow_MegaMenu
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush
```

See the top-level **INSTALL.md** in the distribution ZIP for full instructions (3 install methods, production-mode notes, troubleshooting).

Where to configure
------------------

[](#where-to-configure)

Stores → Configuration → eTechFlow → Mega Menu:

- Master enable/disable
- Root Category ID (which category's children become the top-level menu items)
- **Attach All Active Categories** — Yes = every active category &amp; sub-category auto-shows on enable, even ones set to "Include in Menu = No". No (default) = respect each category's flag. (Categories attach automatically either way — this just controls hidden ones.)
- **Custom Menu Links** — add your own top-level items (Label + URL/path + Sort). They merge in after the category items. Lets admins add custom links without touching categories.
- Max depth, featured products per category, mobile drill-down toggle, cache TTL
- **Featured Products Source** — choose what fills each dropdown's product column: Category Position (default) / Newest / Best Sellers / On Sale / Price Low→High / Price High→Low
- **Dropdown Promo CMS Block** — optional CMS block identifier rendered as a banner/column inside every dropdown (Content → Blocks). Leave blank for none.

Files
-----

[](#files)

```
Etechflow_MegaMenu/
├── composer.json
├── registration.php
├── etc/                # module.xml, config.xml, acl.xml, routes.xml, system.xml, di.xml
├── Controller/         # JSON endpoint (megamenu/products/index)
├── Block/              # MegaMenu renderer (picks template by theme)
├── ViewModel/          # MenuData — top-level categories + theme detection
├── Model/Config.php    # Typed config reader
├── view/frontend/      # Layout, both phtml variants, CSS, vanilla JS
└── i18n/en_US.csv

```

Override points
---------------

[](#override-points)

- **Template:** drop your own `mega-menu.phtml` (or `mega-menu-luma.phtml`) under `app/design/frontend///Etechflow_MegaMenu/templates/`.
- **CSS:** override `mega-menu.css` the same way.
- **Block:** subclass `Etechflow\MegaMenu\Block\MegaMenu` and rebind via your theme's `di.xml`.
- **Data:** subclass `ViewModel\MenuData` for custom queries or pre-baked menus.

Public route
------------

[](#public-route)

`GET /megamenu/products/index?cat=` → JSON:

```
{
  "subcategories": [{"id":3,"name":"Range Rover","url":"https://…","count":42}, …],
  "products":      [{"name":"…","price":29.99,"price_formatted":"£29.99","url":"…","img":"…"}, …]
}
```

License
-------

[](#license)

MIT — see `LICENSE.md` in the distribution.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance97

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~16 days

Total

3

Last Release

15d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/72d596daffc1cbadfe809b006d2fc518e5ca32cdccca9485410d282898d07ba1?d=identicon)[etechflow0](/maintainers/etechflow0)

---

Top Contributors

[![ahmed21-rg](https://avatars.githubusercontent.com/u/185612486?v=4)](https://github.com/ahmed21-rg "ahmed21-rg (14 commits)")[![ayeshanisar786](https://avatars.githubusercontent.com/u/106437953?v=4)](https://github.com/ayeshanisar786 "ayeshanisar786 (2 commits)")

---

Tags

magentonavigationmagento2adobe commercehyvalumamega-menuetechflow

### Embed Badge

![Health badge](/badges/etechflow-module-mega-menu/health.svg)

```
[![Health](https://phpackages.com/badges/etechflow-module-mega-menu/health.svg)](https://phpackages.com/packages/etechflow-module-mega-menu)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68357.9k](/packages/run-as-root-magento2-prometheus-exporter)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1011.8k26](/packages/loki-magento2-components)[joseph-leedy/module-custom-fees

Adds configurable custom fees to orders

361.2k](/packages/joseph-leedy-module-custom-fees)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

1310.9k2](/packages/opengento-module-category-import-export)[angeo/module-llms-txt

Magento 2 module for AI Engine Optimization (AEO). Generates spec-compliant llms.txt and llms-full.txt per llmstxt.org standard, plus streaming JSONL for vector indexing. Multi-store, multi-website, CLI, cron, async admin UI, Page Builder-aware sanitization, customer-group pricing, atomic writes, ETag/Cache-Control, .md mirrors.

111.1k](/packages/angeo-module-llms-txt)

PHPackages © 2026

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