dan0sz/topmenu-products-magento2
Composer 安装命令:
composer require dan0sz/topmenu-products-magento2
包简介
Easily add products to Magento 2's topmenu, instead of just categories.
README 文档
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.
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: CC-BY
- 更新时间: 2019-08-10