3brs/sylius-sorting-plugin

Sorting plugin for Sylius

Installs: 1 492

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 3

Open Issues: 1

Type:sylius-plugin

This package is auto-updated.

Last update: 2024-04-06 10:51:49 UTC


README

68747470733a2f2f33627273312e667261312e63646e2e6469676974616c6f6365616e7370616365732e636f6d2f336272732f6c6f676f2f334252532d6c6f676f2d73796c6975732d3230302e706e67

Sorting Plugin
68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f336272732f73796c6975732d736f7274696e672d706c7567696e 68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f336272732f73796c6975732d736f7274696e672d706c7567696e 68747470733a2f2f636972636c6563692e636f6d2f67682f334252532f73796c6975732d736f7274696e672d706c7567696e2e7376673f7374796c653d736869656c64

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