Mignuti Menü-Badges: help & documentation
“New”, “Sale” or your own text on categories in the mega menu.
Installation in JTL-Shop 5 #
Requirements: JTL-Shop 5.8 or later, PHP 8.3 or later, NOVA or a template using NOVA's mega menu.
- In the admin, open Plugins → Plugin manager and upload the ZIP file.
- In the Available tab, tick the plugin and click Install.
- Create the first badge in the plugin tab Badges.
Settings #
- Kategorie-Attribut aus JTL-Wawi auswerten (use category attribute from JTL-Wawi, default: yes): a category attribute
mig_badgecreates a badge. Badges set in the plugin take precedence. - Badges in der Kategorie-Box (badges in the category box, yes): badges also appear in the “Categories” box (Darstellung → Boxen), for example in the sidebar of category pages.
Managing badges in the admin #
- Open the Badges tab in the plugin.
- Choose the category.
- Choose the type: New, Sale, Offer or custom text.
- Choose the colour: green, red, dark or outlined.
- For custom text, enter it in German and English.
- Save.
Keep badges short, up to 20 characters. The menu is narrow and long texts are cut off.
Change the texts “New”, “Sale” and “Offer” via the language variables mig_mb_new, mig_mb_sale and mig_mb_offer.
Badges from JTL-Wawi #
In JTL-Wawi, add the attribute mig_badge to the category and sync:
neuornew– badge “New” in greensale– badge “Sale” in redangebotoroffer– badge “Offer” in red- any other short text – custom badge in dark
This requires the setting “Kategorie-Attribut aus JTL-Wawi auswerten”. A badge set in the plugin for the same category takes precedence.
Troubleshooting #
- The badge does not appear: does your template use NOVA's mega menu? For Wawi badges: is the setting enabled and the category synced? If needed, clear the shop's object cache.
- The Wawi badge is ignored: a badge is set in the plugin for this category. It takes precedence.
- The text is cut off: shorten it to at most 20 characters.
- No badge in the sidebar: enable “Badges in der Kategorie-Box” and place the “Categories” box.
Uninstalling #
Uninstalling deletes the table xplugin_mignuti_menubadges, settings and texts. Category attributes in JTL-Wawi remain untouched.