-
Require plugin with composer:
composer require sylius/admin-order-creation-plugin
-
Import configuration to
app/config/config.yml
:imports: - { resource: "@SyliusAdminOrderCreationPlugin/Resources/config/app/config.yml" }
-
Import routing to
app/config/routing.yml
:sylius_admin_order_creation: resource: "@SyliusAdminOrderCreationPlugin/Resources/config/app/routing.yml"
-
Add plugin class to your
AppKernel
:$bundles = [ new \FOS\JsRoutingBundle\FOSJsRoutingBundle(), new \Sylius\AdminOrderCreationPlugin\SyliusAdminOrderCreationPlugin(), ];
-
Copy Sylius templates overridden in plugin to your templates directory (e.g
app/Resources/SyliusAdminBundle/views/
):mkdir -p app/Resources/SyliusAdminBundle/views/ cp -R vendor/sylius/admin-order-creation-plugin/src/Resources/views/SyliusAdminBundle/* app/Resources/SyliusAdminBundle/views/
-
Override repositories
-
Copy plugin migrations to your migrations directory (e.g.
src/Migrations
) and apply them to your database:cp -R vendor/sylius/admin-order-creation-plugin/migrations/* src/Migrations bin/console doctrine:migrations:migrate
-
Install
FOSJsRoutingBundle
assets:bin/console assets:install --symlink web
-
Clear cache:
bin/console cache:clear