-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Product quantity stock Not decrease when Order is placed #5945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We are facing the same issue with our website. We upgraded our website to Magento 2.1 from 2.0.4. While placing an order, the product quantity is not decreased. It remains the same. This is causing a huge trouble managing stock. Does any one have an update on this and the cause for it? |
internal jira ticket -MAGETWO-56448 has been created for this issue |
This happens because of change in app/code/Magento/CatalogInventory/Model/Configuration.php. When you save a product, it's stock item gets created and saved in DB with a website_id assigned. Previously this would take current website's ID, now it is hardcoded to zero. As a result, there may be stock items for product that have website_id != 0 and since now Magento searches for the ones with website_id=0, those will never get updated. This whole website scope stock management seems to be a big mess, especially since according to this #473 it was not supposed to be there. There is no easy fix since you'd need to |
Same problem over here. Updated to Magento 2.1, after that the stock is not decreasing. Will this be fixed in Magento 2.1.1? |
Hello. This bug is still existing, any update on this ? |
Hi, |
This issue is closed as duplicate of #5222 |
I created several products via backend using Magento CE 2.0.2, I upgraded to Magento CE 2.1, when I place an order on those products created on Magento CE 2.0.2, quantity not decrease. However on new products created via backend Magento CE 2.1 it's working fine.
No messages are being displayed to show why the stock is not being lowered.
The magento debug and system logs show no real issues.
Steps to reproduce
Expected result
The quantity should decrease.
Actual result
The quantity is not being lowered.
The text was updated successfully, but these errors were encountered: