3brs/sylius-sorting-plugin

Sorting plugin for Sylius

Installs: 1 575

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-12-02 12:10:39 UTC


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