@@ -86,7 +86,7 @@ This **open-source plugin was developed to help the Sylius community**. If you h
8686 vendor/bin/rector process src --config=vendor/bitbag/product-bundle-plugin/rector.php
8787 ` ` `
8888
89- 6. (applied if not using Rector) Extend ` Product` (including Doctrine mapping):
89+ 6. (applied if not using Rector) Extend ` Product` (including Doctrine mapping):
9090
9191 ` ` ` php
9292 < ? php
@@ -170,7 +170,15 @@ This **open-source plugin was developed to help the Sylius community**. If you h
170170 < /doctrine-mapping>
171171 ` ` `
172172
173- 10. Add configuration for extended product and order item:
173+ 10. (optional) If you want to manage stock for bundled products instead of managing bundle stock, add this to your .env:
174+
175+ ` ` ` dotenv
176+ # ##> bitbag/product-bundle-plugin ###
177+ BUNDLED_PRODUCTS_INVENTORY_MANAGEMENT_FEATURE=true
178+ # ##< bitbag/product-bundle-plugin ###
179+ ` ` `
180+
181+ 11. Add configuration for extended product and order item:
174182
175183 ` ` ` yaml
176184 # config/packages/_sylius.yaml
@@ -189,7 +197,7 @@ This **open-source plugin was developed to help the Sylius community**. If you h
189197
190198 ` ` `
191199
192- 11 . If you have full configuration in xml override doctrine config:
200+ 12 . If you have full configuration in xml override doctrine config:
193201
194202` ` ` yaml
195203# config/packages/doctrine.yaml
@@ -207,7 +215,7 @@ doctrine:
207215
208216` ` `
209217
210- 12 . Add plugin templates:
218+ 13 . Add plugin templates:
211219- Inject blocks:
212220
213221` ` ` yaml
@@ -253,18 +261,18 @@ sylius_ui:
253261 cp -R vendor/bitbag/product-bundle-plugin/src/Resources/views/Shop/Common templates/bundles/SyliusShopBundle
254262 ` ` `
255263
256- 13 . Please clear application cache by running command below:
264+ 14 . Please clear application cache by running command below:
257265
258266 ` ` ` bash
259267 bin/console cache:clear
260268 ` ` `
261269
262- 14 . Finish the installation by updating the database schema and installing assets:
270+ 15 . Finish the installation by updating the database schema and installing assets:
263271
264272 ` ` ` bash
265273 bin/console doctrine:migrations:migrate
266274 ` ` `
267- 15 . Add plugin assets to your project:
275+ 16 . Add plugin assets to your project:
268276[Import webpack config](./README_webpack-config.md)*
269277
270278# # Testing
0 commit comments