From 3cdbf9a9abcf231c4316cadd358457860b468711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Fri, 28 Jun 2024 14:03:34 +0200 Subject: [PATCH] Update --- README.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/README.md b/README.md index 62fffbb..8f298a0 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,64 @@ Edit orders inside your admin interface. composer require setono/sylius-order-edit-plugin ``` +### Import routing + +```yaml +# config/routes/setono_sylius_order_edit.yaml +setono_sylius_order_edit: + resource: "@SetonoSyliusOrderEditPlugin/Resources/config/routes.yaml" +``` + +### Extend the `Order` entity + +```php +addSql('UPDATE sylius_order SET initial_total = total'); +} + +// ... +``` + +### Done! + +You should be able to edit orders in your admin interface. Enjoy :tada: + [ico-version]: https://poser.pugx.org/setono/sylius-order-edit-plugin/v/stable [ico-license]: https://poser.pugx.org/setono/sylius-order-edit-plugin/license [ico-github-actions]: https://github.com/Setono/sylius-order-edit-plugin/workflows/build/badge.svg