fmdd/sylius-sorting-plugin

Sorting plugin for Sylius

Installs: 392

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:sylius-plugin


README

FM2D logo Sylius logo

FM2D - SyliusSortingPlugin

License Latest Stable Version Total Downloads PHP Version Require Slack Support

FM2D is a Web Agency publisher of Sylius plugins and open source actor. Since 2016, we strive to produce useful plugins to improve your e-commerce store. FM2D also offers you a first class technical support and customer service.

Summary

Overview

  • Sort products or taxons inside a taxon by simple drag and drop
    • Well-arranged overview of all taxons/products in the taxon
    • Disabled taxons/products greyed out
    • Direct links into taxon/product details
    • Optionally hidden taxon tree to get even more space

Installation

Step 1: Download the plugin

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require fmdd/sylius-sorting-plugin

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the plugin

Then, enable the plugin by adding it to the end of the list of registered plugins/bundles in config/bundles.php file of your project.

<?php
# config/bundles.php
return [
    // ...
    Setono\SyliusTrustpilotPlugin\SetonoSyliusTrustpilotPlugin::class => ['all' => true],
    FMDD\SyliusSortingPlugin\FMDDSyliusSortingPlugin::class => ['all' => true],
    // ...
];

Step 3: Add the plugin routing to your application

# config/routes/sylius_admin.yaml
sylius_sorting_plugin:
    resource: "@FMDDSyliusSortingPlugin/Resources/config/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

Additional resources for developers

To learn more about our contribution workflow and more, we encourage you to use the following resources:

License

This plugin's source code is completely free and released under the terms of the MIT license.

Contact

If you have any questions, feel free to contact us by filling our form on our website or send us an e-mail at contact@fm2d.com with your question(s). We will anwser you as soon as possible !