With this, the new handling, which is used from version 6.6 onwards by default, will be activated. This is the basic requirement for the next step to work.
Please note that this change should almost always be made in the z-shopware.yaml, because edits in the shopware.yaml will be overwritten in case of an update, resulting in the change losing effect. Edits in the z-shopware.yaml are unaffected by an update.In the .yaml file, which you can find in the directory /config/packages/(z-)shopware.yaml, you can now add the following code:
After the edit, the shop's cache should be cleared.
shopware: stock: enable_stock_management: false