Hello Everyone,
We're encountering an issue wherein if products are set to No Backorders but people can still order beyond their allowed quantity.
Global settings are:
Managed Stock -> Yes
Decrease Stock on order
Backorders: No Backorders
Product Level:
Managed Stock -> Yes
Out of Stock Treshold -> 0
Backorders: No Backorders
What's more odd is it is happening intermittently. For example, we create 3 products and everything will work fine. The next 3-4 products that we will create will have the issue and they can't be repaired at all and the only way is to recreate them from scratch. Using the duplicate button will carry over the issue.
Any thoughts on how to tackle this?
All configuration you have shared are correct.
After set backorder No then it will never go to out of stock status.
If you are set backorder and product is already out of stock then it will not work, so you need to change product out of stock as well and save products again.
Also run below command after set all configuration:
php bin/magento indexer:reindex php bin/magento cache:flush
It may help you to resolve issue.
If resolve, please click on 'Kudos' & Accept as Solution!