Mega menu for PrestaShop: build a responsive, accessible navigation

A shop menu has one simple job: answer the question "where is the product I am looking for?". Once a catalogue grows past a few dozen categories, a dropdown on hover stops being enough. Visitors have to guess, open, go back โ€” and often leave the page. On a phone, the same menu turns into a cramped list where every level costs a back-and-forth.

Mega Menu Studio lets you build a complete mega menu inside the PrestaShop back office by drag and drop: columns, images, featured products, tabs, video, badges, a sticky bar and a mobile bottom bar. The menu is rendered by the server, with a real drawer on phones, links that search engines can see and click statistics stored in your own database. No theme file is touched.

Highlights:

  • A visual builder: multi-level tree, reordering with the mouse, a finger or the keyboard, and a preview before publishing
  • Panels that show the catalogue: categories and subcategories with pictures, products with prices, banners, tabs, video and badges
  • A real mobile menu: full-screen drawer level by level, a bottom bar with 4 to 5 shortcuts, a sticky bar
  • Accessibility: keyboard, screen reader, visible focus and a contrast warning
  • Measurement: views, openings, clicks per item, attributed orders and A/B tests
  • No external service: no icon font, no CDN, no statistics sent to a third party

Discover the module and its plans


Presentation

The menu is the visitor's first navigation, yet it is often the last thing a merchant can change without a developer. Theme modules impose their own layout; PrestaShop's native menu shows a category tree with no pictures, no featured products and no specific mobile treatment.

The module starts from a different principle: the menu is content that the merchant builds and publishes, like a page. Its structure, texts and settings live in a draft; the shop keeps showing the published version until you publish. The same document then produces two presentations โ€” a panel on desktop and a drawer on mobile โ€” from the same HTML.

It is built for PrestaShop 1.7.8, 8.0+ and 9.0+ shops with a deep catalogue: fashion, home, spare parts, food, books, professional equipment. It also suits agencies delivering shops that must remain usable with a keyboard and on a phone, and merchants who want to know what their menu brings without installing a third-party analytics tool.

Features

Build the menu without writing code

The Menus page lists every menu of the shop with its position, status (Displayed, Draft only, Inactive), last modification, weight (HTML and SQL queries) and actions: Edit, Translate, Preview on the shop, Duplicate, Export, Deactivate, Delete. New menu offers a blank menu, one of the six templates or the demo menu.

The builder shows the Structure on the left, the Properties of the selected item on the right and a preview of the result. You add a category, a product, a brand, a supplier, a CMS page, a custom link, a column title, a separator, an image, the shop logo, a cart link, an account link, a video, an HTML block, a search field or a badge. The Move up, Move down, Indent and Outdent buttons are real keyboard-accessible buttons, and drag and drop works with a mouse, a finger and a stylus.

Save the draft keeps your work without touching the shop. Publish replaces the live version; Discard the draft goes back to the published version. A concurrency check prevents overwriting a colleague's work: if someone saved in the meantime, the module tells you who and when, and you can load their version.

Catalogue, image and content items

A category can show its subcategories as a list or a grid with pictures and product counts. A product appears as a link or a card with its picture, name and the price PrestaShop shows to that visitor according to their group and the shop settings; the selection can be manual, taken from a category (by position or newest) or based on best sellers. A brand or supplier appears as a list or as logos.

Visuals range from a simple image to a banner with a link and visibility dates: outside its dates, the banner is not rendered. Images are re-encoded by the module, with declared dimensions, lazy loading inside panels and a required alternative text. A YouTube or Vimeo video is embedded without advertising cookies before playback, or an MP4/WebM file is offered with native controls; in every case the player is created only when the panel opens, never at page load.

An HTML block adds rich text cleaned by an allow-list: script tags, iframes, styles and event attributes are stripped. A per-item badge shows a short text with its colours and dates, and a "Sale" badge appears automatically on a product with an active specific price.

Panels, tabs and layout

A bar item can stay a simple link, open a classic dropdown or open a mega panel. The panel accepts 1 to 6 columns, a width aligned with the theme container or full width, left, centre or right alignment, and up to 6 tabs. Tabs follow the accessible tabs pattern: roles, selection, arrow-key navigation; on phones they become stacked groups.

The builder preview shows the unsaved document on desktop (1280 px), tablet (820 px) and mobile (390 px). It is rendered by the same engine as the shop, inside an isolated frame, with the theme styles: what you see before publishing is what the customer gets.

A real phone menu

Below the desktop width, a horizontal menu becomes a Menu button that opens a full-screen drawer. The drawer moves level by level: an item with children opens a new screen with a Back button, a Close button and the title of the previous level. Columns and tabs become stacked groups; images and products are shown as compact rows.

The drawer closes with a horizontal swipe, Escape or the Close button. Focus stays inside while it is open, page scrolling is locked, and every target measures at least 48 px. Vertical menus open as an accordion at every width.

A menu placed in the header or below the header can become sticky: when the bar leaves the screen it fixes to the top with a spacer of its height, and a compact option reduces that height. No animation runs when the visitor has asked for reduced motion.

The Phone bottom bar position displays a fixed bar of 4 or 5 shortcuts below tablet width, with an icon and a short label: link, category, CMS page, cart with counter, account, search or drawer opening. The bar accounts for the safe area on notched screens and adds space at the bottom of the page so it never hides content.

Accessibility

The menu relies on semantic navigation (nav, ul, li). An item with a page keeps its link and gets a separate submenu button with aria-expanded and aria-controls; an item without a page is a plain button. The keyboard opens with Enter or Space, moves between bar items with the left and right arrows (reversed in right-to-left writing), walks a column with the up and down arrows, and closes with Escape, returning focus to the button.

Focus is visible, closed panels are truly hidden, images have alternative text and icon-only items keep a label readable by the screen reader. In the builder, a warning flags text/background pairs below the 4.5:1 contrast ratio without blocking the save. The module helps towards WCAG 2.1 AA; it does not certify the shop's conformity and does not replace an audit.

Search engines

Every link of the published menu is present in the HTML sent to the browser: bar links, panel links, tab links and all drawer levels. The script creates no link; it opens and closes panels, applies the A/B variant already present in the page and builds the video player. Labels are the ones you type, images carry alternative text and no nofollow is added by default: only a custom link can receive one if you tick the box.

The signed preview link is valid for 24 hours: anyone who holds it sees the draft, and the page sends X-Robots-Tag: noindex, nofollow.

Performance and cache

The module loads one style sheet and one script, without jQuery, with embedded SVG icons and the fonts the theme already loads. Panel HTML is cached per shop, language and customer group, then purged on every publication or change that alters the rendering. A page served from the cache runs no query of the module.

Menus that contain products go through PrestaShop's presenter: each product costs what the native presenter costs; the result is then cached for one hour by default, a value you can change. The builder and the menu list show the HTML weight, the compressed size and the query count of each menu; a warning appears above 150 KB of HTML or 60 queries.

Click statistics

The script sends grouped events to a module endpoint: one view per page when the menu is visible, the first opening of each panel or of the drawer, every click on a link with the item identifier, and an "engaged" visit on the first click. Events are counted per day, per menu, per variant, per device, per language and per page type (home, category, product, CMS page, search, brand, supplier, cart, order, account, other).

These are anonymous counters: no visitor identifier, no IP address and no user agent are stored. You set the retention period, purge a menu's statistics and export the current view as CSV. Orders placed after a click in the menu are attributed to the menu, with their pre-tax amount converted into the shop's default currency.

A/B tests

On a published menu, Create a test copies the document into variant B, which you edit in the builder with the variant selector. Start publishes B alongside A and splits visitors equally. The split is chosen in the browser, which keeps it compatible with page caches: the server sends the known variant and the other one in an inert template, then the script applies the right choice.

Results compare views, engaged visits, click rate, orders and order rate, with a B โˆ’ A difference, a 95% confidence interval and a p-value. The module shows "Not enough data yet" until each variant has reached 100 views and 10 engaged views, then "No significant difference yet", "B is performing better" or "A is performing better". Keep A or Keep B makes the winner the published version; Stop keeps A. Publishing is blocked while a test runs.

Templates, demo and transfers

Six templates build a menu from your data: simple dropdown, three category columns, panel with image, brand tabs, vertical menu and compact menu. The demo menu explores every item type of a top menu, except videos and the mobile drawer. Both create an inactive draft, with placeholder pictures for categories that have none; the creation message states how many pictures must be replaced.

A menu exports as JSON with its texts, the names and addresses of its references and its pictures. On import, the file is analysed first: references found or missing, pictures to create, item count. You then apply the creation of a new inactive menu, never overwriting an existing menu. Duplication and copy to another multistore shop follow the same principle and report references missing from the target shop.

Rights, change log and security

Two rights are granted per employee profile: configure (menus, builder, publishing, translations, templates, import/export, previews, A/B tests, statistics purge, settings) and statistics (statistics and CSV export). Without a saved setting, a profile follows its native access to the module menu. Every action checks the right and then the module token; a refusal writes nothing.

The Change log keeps the author, date, shop, menu and action for 365 days. On the security side, all output is escaped, submitted HTML goes through an allow-list, values are cast and escaped with PrestaShop's own functions, and uploads are re-encoded and renamed.

Licence

The module runs with a valid WePresta licence. Without a valid licence (expired, suspended, revoked or missing) it disables itself on the shop: the module's menus are no longer displayed, the module pages close except its configuration page, and menus, settings and statistics are kept. The configuration page re-enables the module as soon as the licence is valid; the menus then come back as they were.

Installation

  1. Download the module archive from your customer account.
  2. In the back office, open Modules > Module Manager and click Upload a module.
  3. Select the ZIP file; PrestaShop installs the module, its tables and its menu entry.
  4. Click Configure and enter your licence key.
  5. Open the module from the configuration page or from the Modules > Mega menu menu (WePresta > Mega menu on PrestaShop 9).

Installation changes neither the native menu nor the theme files. It creates the module tables and its working folders; the configuration page status tells you whether the folders are writable and whether the GD extension is available.

First steps

  1. Menus > New menu: start from a blank menu, a template or the demo menu. Choose its position and orientation.
  2. In the builder, add your items and type their labels in the shop's default language.
  3. Use Preview on the shop or the built-in preview to check the result on desktop, tablet and mobile.
  4. Save the draft, then Publish when the result suits you.
  5. Activate the menu in the list if it is still inactive; several menus can share a position, in their sort order.
  6. Open Translations to complete the other languages, then check the shop by switching language.
  7. Optional: enable statistics and create an A/B test once the menu is stable.

Configuration

The Settings page controls the shop-wide behaviour:

  • Shop display: tablet breakpoint (768 px by default, from 480 to 1,200) and desktop breakpoint (1,024 px by default, from 600 to 1,600, always above the tablet one); header slot and full-width slot CSS classes; stacking order (z-index, 1,000 by default) to raise if a panel ends up behind a theme element.
  • Cache: menu cache lifetime (21,600 seconds, i.e. 6 hours, by default) and menu-with-products cache lifetime (3,600 seconds, i.e. 1 hour, by default, because prices and stock change more often). The cache is rebuilt on every publication.
  • Statistics: retention period (395 days by default, from 30 to 1,095), click statistics and order attribution to the menu, each switchable on or off.
  • Data: delete or keep the data on uninstall; keeping it is the default choice.
  • Status: PrestaShop and PHP versions, active theme, GD availability, folder write access, presence of the theme's native menu and number of menus in the shop.
  • Licence: status, expiry date and activation or renewal form.

Display, cache and statistics settings follow the PrestaShop shop context; in multistore, select the relevant shop before saving.

Use cases

A fashion shop with a deep catalogue. The header menu opens a three-column panel: women, men and accessories, their subcategories with pictures, a selection of new arrivals and a dated collection banner. Customers see the product they are looking for without leaving the page.

A spare-parts dealer. A vertical menu in the left column acts as a catalogue by machine type, with a search field inside the panel and links to brands. On a phone, the same structure becomes an accordion without losing the hierarchy.

A local shop or click & collect. The mobile bottom bar offers four shortcuts: home, categories, cart and account. The header bar stays sticky so search remains reachable while scrolling.

An agency delivering several shops. Per-profile rights limit configuration to the relevant people, the change log shows who published what, and the signed preview link lets a client approve a draft without publishing it.

A merchant deciding between two layouts. Two variants of the same menu are compared on click rate and attributed orders; the winning variant becomes the published version, with no technical work.

Requirements and limits

  • PrestaShop 1.7.8, 8.0+ or 9.0+; PHP 7.4 or later.
  • Classic and Hummingbird themes are supported. Another theme must expose the standard hooks (displayTop, displayNavFullWidth, displayLeftColumn, displayFooter, displayBeforeBodyClosingTag) or display the menu through a shortcode in a CMS page.
  • GD extension available to re-encode images and draw the templates' placeholder pictures; module folders writable for pictures, cache and imports.
  • A valid WePresta licence to use the module; without one it disables itself and keeps the data.
  • A menu holds at most 600 items and its document is limited to 2 MB; the structure is limited to 7 levels and dropdowns to 4 levels. A panel has 1 to 6 columns, 2 to 6 tabs, and a bottom bar 4 or 5 items.
  • An image is limited to 5 MB and 4,000 px per side; an import file to 10 MB. Labels are at most 128 characters and an HTML block 20,000 characters per language.
  • The module does not build pages, does not replace the theme and does not disable the native menu. It does not certify the shop's accessibility, sends no data to a third-party analytics tool and is not connected to a consent manager.
  • The menu's two session cookies (A/B test and order attribution) must be mentioned in the shop's privacy policy; order attribution can be switched off.
  • If you remove the theme's native menu yourself and your licence is no longer valid, the shop shows no menu until renewal: the module only takes over while it is active.

FAQ

Does the module replace my theme's native menu?

No. It adds its own menus through the standard hooks and never disables the native menu. A notice tells you when the theme menu is still displayed in the same place, with a link to Design > Positions if you choose to remove it yourself. The module then only takes over while the licence is valid.

Do I need to change my theme or write code?

No. The menu is built in the back office and displayed through the theme hooks or a shortcode in a CMS page. No PrestaShop or theme file is changed. Classic and Hummingbird are supported; for another theme, check that it exposes the standard hooks or use the shortcode.

Is the menu really designed for phones?

Yes. Below the desktop width, the menu becomes a full-screen drawer that moves level by level, with a Back button, swipe to close and 48 px targets. It is not the desktop panel shrunk down. An optional bottom bar with 4 or 5 shortcuts and a sticky bar are available.

Is the menu accessible?

It provides semantic navigation, aria-expanded and aria-controls attributes, keyboard arrows, Escape returning focus, a visible focus ring, a focus trap in the drawer and a contrast warning below 4.5:1. It helps towards WCAG 2.1 AA, but does not certify the shop's conformity and does not replace an audit.

Does the module slow my shop down?

One style sheet and one script, without jQuery; icons are embedded. Panel HTML is cached per shop, language and customer group, and a cached page runs no query of the module. Menus with products cost what the PrestaShop presenter costs for each product, then stay cached for one hour by default. Weight and query count are shown in the builder.

Yes. Every link in panels, tabs and drawer levels is written into the HTML by the server; the script creates none. Labels are descriptive, images carry alternative text and no nofollow is added by default.

How are the statistics counted?

Through anonymous daily counters: views, openings, clicks per item, device, language and page type, and orders attributed to a visit that clicked in the menu. No visitor identifier, IP address or user agent is stored. You set retention, can purge one menu and export as CSV; click statistics and attribution can be switched off.

How does the A/B test work and when does it conclude?

Two variants are shown in equal shares, chosen in the browser to stay compatible with page caches. The module compares click rate and attributed orders with a 95% confidence interval; it waits for at least 100 views and 10 engaged views per variant before concluding. You then keep A or B, and publishing is blocked during the test.

Can I translate the menu?

Yes. The Translations screen lists every text language by language, with coverage and a filter for missing texts only. Category, product and brand names follow the shop's native translations; right-to-left languages are supported.

Does the module work in multistore?

Yes. A menu can be shared by several shops or copied to another one; settings follow the shop context and each shop has its own cache and statistics. Copying reports references missing from the target shop.

Can I import or export a menu?

Yes. The JSON export contains the menu, its texts, the names and addresses of its references and its pictures. On import, the file is analysed before applying, then creates a new inactive menu; no existing menu is overwritten.

What happens without a valid licence or after uninstalling?

Without a valid licence, the module disables itself: its menus are no longer displayed, the pages close except configuration, and menus, settings and statistics are kept. The configuration page re-enables it after renewal. Uninstalling keeps the data unless you tick the deletion option.

Support

For any help, contact us from your WePresta customer account or by email at mail@wepresta.shop, depending on the support option of your plan.

Changelog

Version 1.0.0

  • Build unlimited menus by drag and drop, with a multi-level tree and a preview before publishing.
  • Add categories with subcategories and pictures, products with prices, brands, suppliers, CMS pages, links, separators and column titles.
  • Compose panels of 1 to 6 columns, with tabs, container or full width and alignment.
  • Insert images and dated banners, a video loaded on opening, a sanitised HTML block, a search field, the logo, the cart and the account.
  • Show per-item badges and an automatic "Sale" badge on discounted products.
  • Offer a real mobile drawer menu, with a Back button, an accordion, swipe to close and 48 px targets.
  • Enable a sticky bar and a mobile bottom bar of 4 to 5 shortcuts.
  • Place menus in the header, below the header, in the left column, in the footer or in a CMS page through a shortcode.
  • Set visibility by device, customer group and dates.
  • Translate every text language by language, with native catalogue names and right-to-left language support.
  • Track views, openings and clicks per item, device, language and page type, with attributed orders and CSV export.
  • Compare two variants with an A/B test, a confidence interval and choosing the winning variant.
  • Preview a draft through a signed link valid for 24 hours, without publishing it.
  • Start from one of the six templates or the demo menu, import and export a menu as JSON, duplicate it or copy it to another shop.
  • Grant configuration and statistics rights per employee profile and follow changes in a change log.
  • Cache menu HTML per shop, language and customer group, and measure the weight and query count of each menu.
  • Use the module on PrestaShop 1.7.8, 8.0+ and 9.0+ with PHP 7.4 minimum.
Loading...