composer require mangoweb-sylius/sylius-labels-plugin
- Add plugin classes to your
config/bundles.php
:return [ ... MangoSylius\LabelsPlugin\MangoSyliusLabelsPlugin::class => ['all' => true], ];
- Add resource to
config/packages/_sylius.yaml
imports: ... - { resource: "@MangoSyliusLabelsPlugin/Resources/config/resources.yml" }
- Add routing to
config/_routes.yaml
mango_sylius_extended_channels: resource: '@MangoSyliusLabelsPlugin/Resources/config/routing.yml' prefix: /admin
- 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>
- Run
bin/console sylius:install:assets