dan0sz / topmenu-products-magento2
Easily add products to Magento 2's topmenu, instead of just categories.
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ~7.1|~7.2
- ext-openssl: *
- magento/framework: 101.*|102.*
This package is auto-updated.
Last update: 2024-05-06 06:38:03 UTC
README
Overview
By default Magento 2 only allows you to add categories to its topmenu. This module makes it possible to also add products to it.
Features
- Easily add products to your store's topmenu, by checking the 'Add product to Topmenu?' attribute.
- Replace the product's name with a custom label.
- Decide the display order of your Topmenu Products by adding a sort order.
- Replace the product's URL with the stores Base Url. This might be useful if e.g. you have your store's Default Web URL set to a product's url (e.g.
catalog/product/view/id/1
) instead ofcms
. - Choose if products should be added before or after the existing categories.
Installation
Using Composer
Installation using Composer is easy and recommended. From a terminal, just run:
composer require dan0sz/topmenu-products-magento2
Manually
If you can't or dont want to use Composer, you can download the master
-branch of this repository and copy the contents to app/code/Dan0sz/TopmenuProducts
.
After installation
Developer Mode
- Run
bin/magento setup:upgrade
- Done!
Production Mode
- Run
bin/magento setup:upgrade
- Run
bin/magento setup:di:compile
- Run
bin/magento setup:static-content:deploy [locales e.g. en_US nl_NL]
- Done!
Configuration
After installation a new tab is added to Stores > Configuration > Catalog and Catalog > Products > Edit, called Topmenu Products.