Concurrent Order Submissions Causing Negative Stock
-
Hello,
We’re encountering negative product stock issues due to concurrent order submissions, particularly when one involves credit card payment. I reproduced this by:
- Opening the website in two browser tabs (including an incognito one).
- Adding low-stock items (1-3 units) to the cart.
- Choosing credit card payment for at least one order.
- Submitting the credit card payment order and simultaneously submitting the other order in a different tab.
This results in negative stock due to WooCommerce’s order processing method. When paying by credit card, the stock isn’t reduced until payment is successful, allowing time for another order to deplete the stock to negative.
This can lead to a poor customer experience and operational hassles if multiple products go into negative stock.
I’m curious why WooCommerce’s default process doesn’t immediately reduce stock upon order placement and later adjust if payment fails?This approach could prevent negative stock issues.
Looking forward to your insights.
Best regards,
Rok
- The topic ‘Concurrent Order Submissions Causing Negative Stock’ is closed to new replies.