Skip to content

Commit

Permalink
add how to overwrite the shop billing data resource
Browse files Browse the repository at this point in the history
  • Loading branch information
gewebe committed Jan 30, 2024
1 parent 47c6b6d commit e506019
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ App\Entity\Addressing\Address:
nullable: true
```

### Extend `ShopBillingData` entity
### Add or Extend `ShopBillingData` entity

```php
# src/Entity/Channel/ShopBillingData.php
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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/

0 comments on commit e506019

Please sign in to comment.