Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboss86 committed Dec 15, 2019
1 parent ae125b5 commit a3f9600
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion doc/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ odiseo_sylius_vendor_plugin_api:
prefix: /api
```

6. Include traits
6. Include traits and override the models

```php
<?php
Expand Down Expand Up @@ -104,6 +104,21 @@ class Product extends BaseProduct implements VendorAwareInterface
}
```

```yml
# config/packages/_sylius.yaml
sylius_channel:
resources:
channel:
classes:
model: App\Entity\Channel

sylius_product:
resources:
product:
classes:
model: App\Entity\Product
```

7. Add the vendor select box to the product form edit page. So, you need to run `mkdir -p templates/bundles/SyliusAdminBundle/Product/Tab` then `cp vendor/sylius/sylius/src/Sylius/Bundle/AdminBundle/Resources/views/Product/Tab/_details.html.twig templates/bundles/SyliusAdminBundle/Product/Tab/_details.html.twig` and then add the form widget

```twig
Expand Down

0 comments on commit a3f9600

Please sign in to comment.