Skip to content

3BRS/sylius-sorting-plugin

Repository files navigation

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 to get even more space

Installation

  1. Run $ composer require 3brs/sylius-sorting-plugin.
  2. Register \ThreeBRS\SortingPlugin\ThreeBRSSyliusSortingPlugin in your Kernel.
  3. Import @ThreeBRSSyliusSortingPlugin/Resources/config/routing.yml in the routing.yml.
    threebrs_sorting:
        resource: "@ThreeBRSSyliusSortingPlugin/Resources/config/routing.yml"
        prefix: /admin

Usage

  • Log into admin panel
  • Click on Sorting products in the Catalog section in main menu
  • Select taxon
  • Drag and drop cards
  • Click Save positions button 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.

$ composer install
$ bin/console doctrine:schema:create -e test
$ bin/behat
$ bin/phpstan.sh
$ bin/ecs.sh

License

This library is under the MIT license.

Credits

Developed by 3BRS
Forked from manGoweb.