- 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
-
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.jsEncore .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 install yarn build
- 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
- Create symlink from .env.dist to .env or create your own .env file
- Develop your plugin in
/src - See
bin/for useful commands
After your changes you must ensure that the tests are still passing.
make ciThis library is under the MIT license.
