Compatible with Magento 2.1 +
- Download zip file
- Extract it
- Put it in app/code/Fary/SimpleMenu directory on your magento project
- Rename it to SimpleMenu
- Go to terminal on magento path and run these commands:
php bin/magento setup:upgrade
php bin/magento cache:clean
After installing module go to admin panel and category management page.
You can see three new fields have been added to categories:
If you wish to have your category as menu item same as before, do not touch these fields.
Take a look at navigation type field, it has four options:
- Category
- CMS Page
- Link
- Attribute
Creates a category and menu item with the link to that category (same as default category creation)
When you choose this option, another field will be shown that you can select your cms page. For example if you have about us CMS page and you wish to have it on top menu, you can simply select "CMS Page" as navigation type and then select "About us" from list of pages.
This option is for when you want to have static link on your top menu no mather it's internal or external.
Choose static link and another field will be appeared that you can write your address there.
You need to write entire URL for example: http://faranakyazdanfar.com
This option helps you have attribute filter on your topmenu.
After choosing this option another field become visible which lists all filterable attributes.
The link would be created category url filtered by selected attributes.
Let's see the result on frontend:
There is another case which you choose just one attribute.
In this case you don't have any extra sub menus the only one is options.
This field allows you to choose how customers open a link.
If you set it to "No", current tab will navigate to another link, and if you select "Yes" menu item link will be open in a new tab.
When you set "Yes" to mega menu field, another field will be shown as "Mega Menu Block" which allows you to add image to your menu.
And the result is:
- This module works with virtual categories as well.
- If you are frontend developer you can find each menu item has sufficient classes for having best experience of styling this menu.
If you need help please contact yazdanfar.faranak@gmail.com
.