From 0d04ff6a1ffc83fb895989aa6e4d7931f3da368f Mon Sep 17 00:00:00 2001 From: Soner Sayakci Date: Tue, 27 Jan 2026 14:14:47 +0300 Subject: [PATCH 1/3] refactor: remove old version references --- .../shopware/environment-variables.md | 2 -- .../hosting/configurations/shopware/stock.md | 18 ++++-------------- guides/plugins/plugins/content/stock/index.md | 6 +----- 3 files changed, 5 insertions(+), 21 deletions(-) diff --git a/guides/hosting/configurations/shopware/environment-variables.md b/guides/hosting/configurations/shopware/environment-variables.md index dbbe231b4d..ebc2fd267d 100644 --- a/guides/hosting/configurations/shopware/environment-variables.md +++ b/guides/hosting/configurations/shopware/environment-variables.md @@ -30,8 +30,6 @@ This page lists all environment variables that can be used to configure Shopware | `ENABLE_SERVICES` | `auto` | Determines if services are enabled, auto detects that based on `APP_ENV`, other possible values are `true` (or `1`) and `false` (or `0`). When set to `0`, Shopware Services won't be installed on the system | | `FASTLY_API_KEY` | (empty) | API key for Fastly CDN integration. **Keep this value secure and do not commit it to version control.** | | `INSTANCE_ID` | (empty) | Unique Identifier for the Store: Can be generated with `openssl rand -hex 32` | -| `JWT_PRIVATE_KEY` | (empty) | Can be generated with `shopware-cli project generate-jwt --env` | -| `JWT_PUBLIC_KEY` | (empty) | Can be generated with `shopware-cli project generate-jwt --env` | | `LOCK_DSN` | `flock` | DSN for Symfony locking | | `MAILER_DSN` | `null://localhost` | Mailer DSN (Admin Configuration overwrites this) | | `MESSENGER_TRANSPORT_DSN` | (empty) | DSN for default async queue (example: `amqp://guest:guest@localhost:5672/%2f/default`) | diff --git a/guides/hosting/configurations/shopware/stock.md b/guides/hosting/configurations/shopware/stock.md index be9399062c..346e7a4979 100644 --- a/guides/hosting/configurations/shopware/stock.md +++ b/guides/hosting/configurations/shopware/stock.md @@ -9,25 +9,15 @@ nav: When running Shopware 6 there are various configuration options you can use to customize your installation. These configurations reside in the general [bundle configuration](../../../../guides/hosting/configurations/). -Some features of Shopware are only activated when the corresponding feature flag is enabled. Feature flags can be enabled in your project's `.env` file: +## Stock management system -<<< @/docs/snippets/config/stock.sh +The stock management system manages stock levels automatically when orders are placed, cancelled, or completed. The `product.stock` field is the primary source for real-time product stock values. -## Enable stock management system - -As of Shopware 6.5.5, the stock management system has been rewritten. The `product.stock` field is now the primary source for real-time product stock values. - -The new system is not enabled by default. To enable it, set the `STOCK_HANDLING` feature flag to `1`. - -<<< @/docs/snippets/config/stock.sh - -In the next major version of Shopware, the new stock management system will become the default. +The stock management system is enabled by default. No additional configuration is required. ## Disable stock management system -Please note this only applies if you have the `STOCK_HANDLING` feature flag enabled. - -You can completely disable Shopware's default stock management system. When disabled, none of the event subscribers for order transitions will be executed. In practice, this means that none of the subscribers in `Shopware\Core\Content\Product\Stock\OrderStockSubscriber` will be executed. +You can completely disable Shopware's default stock management system. When disabled, the `product.stock` field will not be updated automatically when orders are placed or completed. To disable, set `shopware.stock.enable_stock_management` to `false`: diff --git a/guides/plugins/plugins/content/stock/index.md b/guides/plugins/plugins/content/stock/index.md index 85777c4c32..53899935e1 100644 --- a/guides/plugins/plugins/content/stock/index.md +++ b/guides/plugins/plugins/content/stock/index.md @@ -7,12 +7,8 @@ nav: # Stock -::: info -The stock management system is available from Shopware 6.5.5.0. It is only enabled if the shop owner has enabled the `\STOCK_HANDLING\` feature flag. -::: - The stock management system allows the allocation of stocks to products. Stock is incremented and decremented as orders are placed, modified, canceled, and refunded. In order to accommodate for the various use cases, the stock management system has been kept as simple as possible. The shop owner can deactivate it entirely if not required. -To enable or disable this feature, refer to [stock configuration](../../../../../guides/hosting/configurations/shopware/stock) section. +To enable or disable this feature, refer to [Stock configuration](../../../../../guides/hosting/configurations/shopware/stock) section. From 8f82c5562208fb9eeea8faf67db9a30fa868f06c Mon Sep 17 00:00:00 2001 From: Micha Date: Wed, 28 Jan 2026 10:11:51 +0100 Subject: [PATCH 2/3] chore/remove-unused-import-file --- snippets/config/stock.sh | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 snippets/config/stock.sh diff --git a/snippets/config/stock.sh b/snippets/config/stock.sh deleted file mode 100644 index c883fbd548..0000000000 --- a/snippets/config/stock.sh +++ /dev/null @@ -1,2 +0,0 @@ -// /.env -STOCK_HANDLING=1 From 0f4259337bd79aa891de89b1150b166c4d3690d7 Mon Sep 17 00:00:00 2001 From: Micha Date: Wed, 28 Jan 2026 10:18:55 +0100 Subject: [PATCH 3/3] chore/remove-command --- resources/references/core-reference/commands-reference.md | 1 - 1 file changed, 1 deletion(-) diff --git a/resources/references/core-reference/commands-reference.md b/resources/references/core-reference/commands-reference.md index 6b37dc2aa2..d28ba975f0 100644 --- a/resources/references/core-reference/commands-reference.md +++ b/resources/references/core-reference/commands-reference.md @@ -386,7 +386,6 @@ Generating the skeletons and essential files needed to create and structure a Sh | `system:config:set` | Sets a config value | | `system:configure-shop` | Configures the shop | | `system:generate-app-secret` | Generates a new app secret | -| `system:generate-jwt-secret` | Generates a new JWT secret | | `system:install` | Installs the Shopware 6 system | | `system:is-installed` | Checks if the system is installed and returns exit code 0 if Shopware is installed | | `system:setup` | Setup the system |