mangoweb-sylius/sylius-sorting-plugin

Sorting plugin for Sylius

Installs: 10 458

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 3

Forks: 13

Open Issues: 5

Type:sylius-plugin


README

38423357?s=200&v=4

Sorting Plugin
68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d616e676f7765622d73796c6975732f73796c6975732d736f7274696e672d706c7567696e2e737667 68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616e676f7765622d73796c6975732f73796c6975732d736f7274696e672d706c7567696e2e737667 68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d616e676f7765622d73796c6975732f53796c697573536f7274696e67506c7567696e2f6d61737465722e737667

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

sorting.png

Installation

  1. Run $ composer require mangoweb-sylius/sylius-sorting-plugin.
  2. Register \MangoSylius\SortingPlugin\MangoSyliusSortingPlugin in your Kernel.
  3. Import @MangoSyliusSortingPlugin/Resources/config/routing.yml in the routing.yml.

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 manGoweb.