1212composer require bitbag/wishlist-plugin
1313```
1414
15- 2 . Override ` OrderItemController `
15+ 2 . (optional) Add plugin dependencies to your ` config/bundles.php ` file:
16+
17+ ``` php
18+ // config/bundles.php
19+
20+ return [
21+ ...
22+
23+ BitBag\SyliusWishlistPlugin\BitBagSyliusWishlistPlugin::class => ['all' => true],
24+ ];
25+ ```
26+
27+ 3 . (optional) Import required config in your ` config/packages/_sylius.yaml ` file:
28+
29+ ``` yaml
30+ # config/packages/_sylius.yaml
31+ imports :
32+ ...
33+ - { resource: "@BitBagSyliusWishlistPlugin/Resources/config/config.yml" }
34+ ` ` `
35+
36+ 4. (optional) Import routing in your ` config/routes.yaml` file:
37+
38+ ` ` ` yaml
39+ # config/routes.yaml
40+ bitbag_sylius_wishlist_plugin:
41+ resource: "@BitBagSyliusWishlistPlugin/Resources/config/routing.yml"
42+ ` ` `
43+
44+ 5. Override `OrderItemController`
1645
1746` ` ` yaml
1847sylius_order:
@@ -23,7 +52,7 @@ sylius_order:
2352
2453` ` `
2554
26- 3 . Add plugin templates:
55+ 6 . Add plugin templates :
2756
2857- Inject blocks :
2958
@@ -47,21 +76,21 @@ sylius_ui:
4776cp vendor/bitbag/wishlist-plugin/src/Resources/view/Product/Show/_addToCart.html.twig templates/bundles/SyliusShopBundle/Product/Show
4877` ` `
4978
50- 4 . Clear application cache by using command:
79+ 7 . Clear application cache by using command :
5180
5281` ` ` bash
5382bin/console cache:clear
5483` ` `
5584
56- 5 . Update your database
85+ 8 . Update your database
5786
5887` ` ` bash
5988bin/console doctrine:migrations:migrate
6089` ` `
6190
6291**Note:** If you are running it on production, add the `-e prod` flag to this command.
6392
64- 6 . Add plugin assets to your project
93+ 9 . Add plugin assets to your project
6594
6695We recommend you to use Webpack (Encore), for which we have prepared four different instructions on how to add this plugin's assets to your project :
6796
0 commit comments