Skip to content

mangoweb-sylius/SyliusLabelsPlugin

Repository files navigation

Labels plugin

Installation

  1. composer require mangoweb-sylius/sylius-labels-plugin
  2. Add plugin classes to your config/bundles.php:
    return [
       ...
       MangoSylius\LabelsPlugin\MangoSyliusLabelsPlugin::class => ['all' => true],
    ];
  3. Add resource to config/packages/_sylius.yaml
    imports:
         ...
         - { resource: "@MangoSyliusLabelsPlugin/Resources/config/resources.yml" }
  4. Add routing to config/_routes.yaml
    mango_sylius_extended_channels:
        resource: '@MangoSyliusLabelsPlugin/Resources/config/routing.yml'
        prefix: /admin
  5. Override Sylius/Bundle/AdminBundle/Resources/views/Order/Show/_header.html.twig template and after the end of <div class="sub header"> add:
<div class="sub header">
    <div class="ui horizontal divided list">
        <div class="item">
            {% include "@MangoSyliusLabelsPlugin/Admin/Order/labels-select.html.twig"%}
        </div>
    </div>
</div>
  1. Run bin/console sylius:install:assets

About

Custom admin labels for orders

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published