Mega Menu Documentation

Installationtop

Uploading

  1. Download the add-on
  2. Go to Admin panel > Add-ons > Manage Add-ons
  3. Click on [+] to open upload modal window
  4. Please choose whatever is comfortable to you:
    Local: zip archive is saved on your computer
    Server: zip archive is uploaded on your server
    URL: you have a direct link to the zip archive
  5. After you selected the zip archive corresponding to your current version of CS-Cart please click Upload & install

Activation

  1. Open add-on settings page Admin panel > Add-ons > Manage Add-ons >
    [TH] Mega Menu
  2. In Activation tab insert License key
  3. Save the settings and go back to Manage Add-ons page
  4. In same line with the name of the add-on, click Active
  5. Clear cache, choose Administration > Storage > Clear cache

Make sure that the add-on status is Active

That’s all, the add-on is installed


Steps after installing the add-ontop

Once the add-on is installed you need to follow these steps:

  • Create and setup a menu – Menu settings
  • Create and setup a block in layout – Block settings
  • If necessary, adjust menu color scheme – Change colorscheme
  • For convenience, you can install one of the demo examples and make your own menu based on it – Demo examples
  • To automatically fill in items in the item tree, you need to fill in categories

For a better understanding how add-on works, you can visit admin panel with demo examples


Menu settings top

To create a Mega Menu:

  1. Go to Admin Panel > Design > Menu
  2. Press [+] button to open the new menu dialog box
  3. Enter the name and press Create
  4. Select the newly created menu
  5. Press [+] button, to open the Add record(s) dialog box

The Mega Menu add-on replaces the standard menu item editor, but you can still use it. Just select the default type in the menu settings.

Menu items have the following content types
first level:

  • Default, filling options:
    • List
    • Columns – full-width drop-down block, blocks of equal width
    • Flex columns – drop-down block for the entire width, the width of the block depends on the content
  • Tree – filled in automatically from categories or manually
  • Store logo
  • Search field
  • Cart
  • Cart link
  • Profile
  • Wish list
  • Comparison list
  • Currency selector
  • Full-width categories

the second level (does not appear for all content types of the first level):

  • Default
  • Wysiwyg – text item with Wysiwyg support and the ability to set blocks from layouts
  • Smarty – text item with Smarty support
  • Level 2 – used for the tree of elements , it is possible to specify columns and icons

Block settings top

When the menu is ready, go to Admin Panel > Design > Layouts and create a Mega menu block. In its settings, select the previously created menu.

Since version 7.00 all menu layouts are templates of this single block. Choose one in the Template selector:

  • Horizontal menu (default) – the classic menu bar
  • Vertical menu – a vertical menu, usually placed in a sidebar
  • Hamburger menu – a single button that opens the standard mobile menu panel at any screen width
  • Open category tree – an always-open category tree panel

Horizontal menu settings

  • Style – sets the display of menu items
  • Focus on menu – adds a dark background on the site when hovering over the menu
  • Sticky menu – fixes the menu when scrolling
  • Full width – extends the menu or its background to the entire screen
  • Category tree grid – layout engine for the category tree: Masonry (JS library) or pure CSS columns

Hamburger menu settings

In its resting state the block is only a button; clicking it opens the same panel the mobile menu uses, on any screen width.

  • Opener button styleIcon only (transparent, uses the theme color; lets the block replace your theme’s own hamburger one-to-one) or Button with label
  • Icon size, px – blank means 24
  • Icon font class – use a glyph of your theme’s icon font instead of the bundled icon (e.g. icon-et-menu)
  • Custom SVG icon – paste your own SVG code; overrides the icon font class. Keep fill=”currentColor” to inherit the theme color
  • Panel width, px – panel width for this block; blank inherits the add-on setting

Vertical menu and Open category tree settings

Both have the Category tree grid setting; the vertical menu additionally supports Focus on menu.

The older block types MM: Vertical (deprecated) and MM: Additional vertical are kept so existing shops keep working. For new layouts use the Mega menu block with the corresponding template.


Demo examples top

The add-on ships with ready-made demo menus.
After the add-on has been activated, reload the page, open the add-on settings, select the Demo section and install the example you like.

Every installation creates a new menu: your existing menus are never modified or overwritten. Menu names and item titles are created in all languages active in your store. You can safely install the same example several times – copies get a number suffix.

After installation the menu appears in Admin panel > Design > Menus (the confirmation message contains direct links). To display it on the storefront, add a Mega menu block in the layout and select this menu in it.

Configured blocks for demo examples can be viewed in the demo admin panel.


Limitations:top

  • The legacy MM: Additional vertical block displays a tree only together with a parent Mega menu block on the same page (or when a menu is selected in its own settings). For new layouts use the Open category tree template instead – it renders on its own.

PHP Hook for Adding Logictop

To add custom logic to the mega menu items, you can use the following hook:

fn_set_hook('change_mega_menu_item', $menu_item);

Hooks for New Display Variantstop

To introduce new display options for menu elements, use the following hooks:

{hook name="ath_mega_menu:drop_down_type__l1"}{/hook}
{hook name="ath_mega_menu:content_type__l2"}{/hook}

Frontend Hooktop

To output on the frontend, use this hook:

{hook name="ath_mega_menu:item_l1__content_type"}{/hook}

Logged-in User Classtop

When the user is logged in, the class mm1--auth is added to the menu. Additionally, the text “Account” changes to the user’s name or email address.


Integration with Fast Cart Add-ontop

For Fast Cart integration, add the cart block from the Fast Cart add-on to any page containing the menu with a cart. Position the cart block immediately after the menu block.


Change the color schemetop

  1. Go to Admin panel > Add-ons > Manage Add-ons > [TH] Mega Menu
  2. After editing, save the changes by pressing Save

Besides the colors, the add-on settings also contain:

  • Mobile menu panel width, px – width of the slide-out mobile menu panel (the Hamburger block uses it at every width unless the block sets its own)
  • Cache the menu for logged-in customers – speeds up pages for logged-in customers; leave off if your menu contains Smarty items with per-user content

CSS variablestop

Since version 7.00 the menu look is driven by CSS variables, so you can restyle it from your theme or Custom CSS without recompiling styles:

  • --mm-menu-bg – menu bar background
  • --mm-linkl1 / --mm-linkl1-hover – first level links
  • --mm-menu-dd-bg – drop-down background
  • --mm-linkl2 / --mm-linkl2-hover – drop-down links
  • --mm-border-color – borders
  • --mm-search-bg, --mm-search-color, --mm-search-placeholder, --mm-search-icon – search field in the menu
  • --mm-panel-width – mobile / hamburger panel width
  • --mm-opener-icon-color, --mm-opener-icon-size – hamburger opener icon

Example for Custom CSS:

:root {
    --mm-menu-bg: #1a1a2e;
    --mm-linkl1-hover: #ff9800;
}

Change stylestop

Style files of the add-on should not be changed, this can lead to incorrect work of the add-on. Start with the CSS variables above; if you need to redefine or add other styles, please use Theme editor for this

  1. Go to Design > Themes
  2. Press Visual Editor in front of the currently active layout
  3. In the new tab, you will see your shop with Theme editor panel
  4. In CUSTOMIZE selector choose Custom CSS
  5. In textarea your can add your styles
  6. After editing save your changes by pressing Save and press [X] to close editor

Changelog

7.00 (24 Jul 2026)
Major update: all layouts are now one Mega menu block with template selector (Horizontal, Vertical, Hamburger, Open category tree)
New Hamburger menu: can replace your theme's own hamburger, icon and panel width are configurable
Reworked JavaScript, demo menus and mobile display; menu colors are now CSS variables
The changes are significant, so if you notice any issues after updating, clear the cache first and let us know.

6.05 (24 Jul 2026)
PHP 8.2 / 8.3 compatibility
License system improvements
Storefront is not affected

6.04 (04 Sep 2025)
css fix for sticky option

6.03 (31 Jul 2025)
Fixed login bug (recommended to update if using CS-Cart 4.18.4 or newer)
Template improvements

6.02 (26 May 2025)
Improved mobile display
Bug fixes

6.01 (13 Feb 2025)
Important fixes:
	•	Fixed caching issue with transparent background variant.
	•	Resolved error when Wishlist module is deleted.
Improved performance

6.00 (07 Feb 2025)
We have reworked the caching principles and changed the way dynamic blocks are updated
The changes are quite significant, so if you notice that any of the old settings have stopped working or any bugs have appeared, please let us know.

5.11 (31 Oct 2024)  
- Added integration with the FastCart add-on  
- Added integration with the Direct Payment to Vendors add-on  
- New elements added for mobile view  
- Style improvements  
- Template enhancements  
- Added hooks  

5.10 (May 13, 2024)
Fixes in the update system
Fixed links for the full-width category view (for pages)
Added vendor buttons to the profile
Fixes to styles and templates
The initialization bug has been fixed

5.09 (01 May 2023)
Improved display of mobile elements

5.08 (10 Jan 2023)
Improvements in styles (logos)
Improvements in templates and scripts
Improvements in PHP scripts
The license system has been updated (www ignored)

5.07 (23 May 2022)
Fixes in PHP scripts
Updated language variables

5.06 (18 Feb 2022)
Fixes in styles
Added a new vertical block
Updated language variables

5.05 (28 Dec 2021)
Updated scripts 
Updated license system

5.04 (14 Oct 2021)
Transparent background for the home page
Separator
View of the login button for unauthorized users
Maximum width for the logo

5.03 (14 Mar 2021)
Integrated the update system through the Upgrade center

5.02 (22 Dec 2020)
Updated the add-on for compatibility with CS-Cart 4.12.1
You need to reinstall the add-on for CS-Cart Multivendor Ultimate
Added support for CS-Cart Multivendor Ultimate

5.01 (20 Apr 2020)
Fixes in styles
Updated language variables

5.00 (09 Mar 2020)
Added the ability to output SMARTY blocks
Added the ability to output blocks from the layout
You can create multiple menus
Added a shopping cart item with a link
The tree view can now be filled in manually
Banners for the tree view have been replaced with text banners
Moved the settings from the block to the menu items 
Updated styles
Updated backend

4.08 (19 Nov 2019)
Fixed bug for full-width layouts

4.7 (04 Nov 2019)
Added the ability to specify the position of the logo on the mobile view
Added a button to select which devices to display the menu items, such as in blocks
Search on mobile view is now immediately selected when opened
For unauthorized users, you can leave only buttons in your account

4.6 (06 Sep 2019)
Changes in styles (removed less lighten function)
Improved display for categories with long name on mobile view
Improved the display for categories with long name on the desktop for the view " full tree"

4.5 (11 Jul 2019)
Fixed bug for option when the background is not full width

4.4 (28 Jun 2019)
Added ability to select search display options for mobile view (drop-down/hidden in exit menu)
Improved work with tablets
Fixed bug for pending items
Fixed bug for comparison list
Added support of authorization via social networks
Style fix


4.3 (10 Feb 2019)
Fixed bug in hotel
Corrections in the drop-down list

4.2 (01 Nov 2018)
Removing the setting with the image pictures
Fix for full width option

4.1 (15 Oct 2018)
Changing language variables
Added the ability to change the menu in the admin panel to support other companies (Unitheme)
Update hotel
The ability to change the back button on the category name for mobile view

3.6 (09 Jul 2018)
Changes in js and styles
Fixed third level menu display on phones

3.5 (04 Jul 2018)
Changed mahonri and language variables
Fixes to styles

3.4 (8 Jun 2018)
Redesigned styles for drop-down list - all categories
Added the ability to remove the link from "all categories"
Grid replaced by tile for drop-down list - all categories
Possibility to remove images for categories in the "all categories" type"
Fixed js bug with account item
On the mobile view, you can display the categories immediately
On the mobile view, it is possible to make the categories of the first level opening subcategories, rather than links
At the end of the list for the type "all categories" you can add your links (without icons)

3.3 (26 Apr 2018)
Changed the display of the store logo, added the ability to change

3.2 (18 Apr 2018)
Copy languages for mega menu demo

3.1 (3 Apr 2018)
Switch languages on the desktop version
Currency switch to the desktop version
The license supports Multi-Vendor

3.0 (7 Dec 2017)
removed content type Icon
added the ability to add and replace icons for preinstalled items
focusing on menus like Amazon
delay in opening drop-down lists
changed language variables
added to basket
added profile
added to the wishlist
added to compare products
the ability to not hide the icons of the basket, profile, comparison list and wishlist on mobile view
added "table" style (Walmart)"
installing the demo

2.2 (28 Nov 2017)
fix menu focus

2.1 (31 Octb 2017)
support the
vendor support for ultimate

2.0 (11 Octb 2017)
icon
rewritten way to save settings (bd, php)
changed the structure of templates (tpl)
added a view for categories outside the full category tree

1.4 (8 Octb 2017)
added RTL
full width background
logotype
fixes

1.3 (28 Sept 2017)
fixed bug for regular columns (3rd level display)
added to full width for the sticks

1.2 (31 Aug 2017)
additional block for vertical display of the category tree
search menu item
improved interaction with touch devices

1.1 (6 Jul 2017)
locking the menu while scrolling
color setting
switching images for level 3 categories
focus on menus on hover