{"id":50732700,"url":"https://github.com/etechflow/module-etechflow-mega-menu","last_synced_at":"2026-06-10T10:30:43.082Z","repository":{"id":363550548,"uuid":"1263095182","full_name":"etechflow/module-etechflow-mega-menu","owner":"etechflow","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-09T11:22:56.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-09T12:11:54.368Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/etechflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-08T16:05:22.000Z","updated_at":"2026-06-09T11:23:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/etechflow/module-etechflow-mega-menu","commit_stats":null,"previous_names":["etechflow/module-etechflow-mega-menu"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/etechflow/module-etechflow-mega-menu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etechflow%2Fmodule-etechflow-mega-menu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etechflow%2Fmodule-etechflow-mega-menu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etechflow%2Fmodule-etechflow-mega-menu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etechflow%2Fmodule-etechflow-mega-menu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/etechflow","download_url":"https://codeload.github.com/etechflow/module-etechflow-mega-menu/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/etechflow%2Fmodule-etechflow-mega-menu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34149132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-10T10:30:41.038Z","updated_at":"2026-06-10T10:30:43.077Z","avatar_url":"https://github.com/etechflow.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Etechflow_MegaMenu\n\nA theme-agnostic mega menu for Magento 2.\n\n## At a glance\n\n- **Themes supported:** Hyvä, Luma, Adobe Commerce default, and any custom theme inheriting from either.\n- **No jQuery dependency** in the Luma variant — uses vanilla JS only, so it stays light and works in lean themes.\n- **No Knockout / RequireJS** in the Hyvä variant — uses Alpine.js (already shipped with every Hyvä theme).\n- **Lazy-loaded data:** dropdown subcategories + featured products are fetched on first hover from a 1-hour-cached JSON endpoint (`/megamenu/products/index?cat=\u003cid\u003e`).\n- **Auto theme detection** at runtime — picks the right template per request.\n\n## Quick install\n\n```bash\n# from your Magento root\ncp -r /path/to/Etechflow_MegaMenu app/code/Etechflow/MegaMenu\nbin/magento module:enable Etechflow_MegaMenu\nbin/magento setup:upgrade\nbin/magento setup:di:compile\nbin/magento setup:static-content:deploy -f\nbin/magento cache:flush\n```\n\nSee the top-level **INSTALL.md** in the distribution ZIP for full instructions (3 install methods, production-mode notes, troubleshooting).\n\n## Where to configure\n\nStores → Configuration → eTechFlow → Mega Menu:\n\n- Master enable/disable\n- Root Category ID (which category's children become the top-level menu items)\n- **Attach All Active Categories** — Yes = every active category \u0026 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.)\n- **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.\n- Max depth, featured products per category, mobile drill-down toggle, cache TTL\n- **Featured Products Source** — choose what fills each dropdown's product column:\n  Category Position (default) / Newest / Best Sellers / On Sale / Price Low→High / Price High→Low\n- **Dropdown Promo CMS Block** — optional CMS block identifier rendered as a banner/column\n  inside every dropdown (Content → Blocks). Leave blank for none.\n\n## Files\n\n```\nEtechflow_MegaMenu/\n├── composer.json\n├── registration.php\n├── etc/                # module.xml, config.xml, acl.xml, routes.xml, system.xml, di.xml\n├── Controller/         # JSON endpoint (megamenu/products/index)\n├── Block/              # MegaMenu renderer (picks template by theme)\n├── ViewModel/          # MenuData — top-level categories + theme detection\n├── Model/Config.php    # Typed config reader\n├── view/frontend/      # Layout, both phtml variants, CSS, vanilla JS\n└── i18n/en_US.csv\n```\n\n## Override points\n\n- **Template:** drop your own `mega-menu.phtml` (or `mega-menu-luma.phtml`) under\n  `app/design/frontend/\u003cVendor\u003e/\u003ctheme\u003e/Etechflow_MegaMenu/templates/`.\n- **CSS:** override `mega-menu.css` the same way.\n- **Block:** subclass `Etechflow\\MegaMenu\\Block\\MegaMenu` and rebind via your theme's `di.xml`.\n- **Data:** subclass `ViewModel\\MenuData` for custom queries or pre-baked menus.\n\n## Public route\n\n`GET /megamenu/products/index?cat=\u003cid\u003e` → JSON:\n\n```json\n{\n  \"subcategories\": [{\"id\":3,\"name\":\"Range Rover\",\"url\":\"https://…\",\"count\":42}, …],\n  \"products\":      [{\"name\":\"…\",\"price\":29.99,\"price_formatted\":\"£29.99\",\"url\":\"…\",\"img\":\"…\"}, …]\n}\n```\n\n## License\n\nMIT — see `LICENSE.md` in the distribution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetechflow%2Fmodule-etechflow-mega-menu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fetechflow%2Fmodule-etechflow-mega-menu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetechflow%2Fmodule-etechflow-mega-menu/lists"}