3brs/sylius-sorting-plugin
最新稳定版本:v2.0.0
Composer 安装命令:
composer require 3brs/sylius-sorting-plugin
包简介
Sorting plugin for Sylius
README 文档
README
Sorting Plugin
Features
- Sort products in taxons by simple drag and drop
- Well-arranged overview of all products in the taxon
- Disabled products greyed out
- Direct links into product details
- Optionally hidden taxon tree and product images to get even more space
Installation
-
Run
composer require 3brs/sylius-sorting-plugin. -
Register plugin to your
config/bundles.php:return [ ... ThreeBRS\SortingPlugin\ThreeBRSSyliusSortingPlugin::class => ['all' => true], ];
-
Import plugin configuration in
config/packages/_sylius.yaml:imports: - { resource: "@ThreeBRSSyliusSortingPlugin/config/config.yaml" }
-
Import routing configuration in
config/routes.yaml:threebrs_sorting: resource: "@ThreeBRSSyliusSortingPlugin/config/routing.yaml" prefix: '%sylius_admin.path_name%'
-
Import plugin JS in
webpack.config.js// App admin config Encore .addEntry('threebrs-sorting-admin', path.resolve(__dirname, 'vendor/3brs/sylius-sorting-plugin/assets/admin/js/sorting-plugin.js'))
-
Require JavaScript library
sortablejs:yarn add sortablejs@1.15.6
-
Rebuild assets:
yarn build
Usage
- Log into admin panel
- Click on
Sorting productsin the Catalog section in main menu - Select taxon
- Drag and drop cards
- Click
Save positionsbutton in the top right corner
Development
Usage
- Create symlink from .env.dist to .env or create your own .env file
- Develop your plugin in
/src - See
bin/for useful commands
Testing
After your changes you must ensure that the tests are still passing.
make ci
License
This library is under the MIT license.
Credits
统计信息
- 总下载量: 3.87k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-03
