From e5060197345f15fbf33de1087b1118db55087940 Mon Sep 17 00:00:00 2001 From: Gerd Weitenberg Date: Tue, 30 Jan 2024 11:44:57 +0100 Subject: [PATCH] add how to overwrite the shop billing data resource --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f6e372..7c1fa08 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ App\Entity\Addressing\Address: nullable: true ``` -### Extend `ShopBillingData` entity +### Add or Extend `ShopBillingData` entity ```php # src/Entity/Channel/ShopBillingData.php @@ -137,6 +137,17 @@ App\Entity\Channel\ShopBillingData: nullable: true ``` +Override the resource for `shop_billing_data` in your sylius config: +```yaml +# config/packages/_sylius.yaml + +sylius_core: + resources: + shop_billing_data: + classes: + model: App\Entity\Channel\ShopBillingData +``` + ### Update your database schema ```bash @@ -216,3 +227,13 @@ $ vendor/bin/ecs check [link-packagist]: https://packagist.org/packages/gewebe/sylius-vat-plugin [link-code-quality]: https://scrutinizer-ci.com/g/gewebe/SyliusVATPlugin [link-build]: https://github.com/gewebe/SyliusVATPlugin/actions/workflows/build.yml + + + + +Ideen: + +- UK Vat Check +- In Kundengruppe verschieben +- Bestellübersicht Vat free +- https://wordpress.org/plugins/eu-vat-for-woocommerce/