Hi,
I ran into an issue with the behavior of the reserved stock when the user returns to the Cart.
The product becomes reserved when the user adds it to the Cart and if the user walks out for the x minutes determined in the Ecommerce settings, the products are no longer reserved.
However, when a user returns to the Cart the products become immediately reserved again.
This can cause an issue, if another user had meanwhile added the same products to their Cart and now has that product reserved to them.
If there's not enough stock, the reserved amount becomes higher than the stock and the available amount becomes negative for that product.
See the repro here (I cut out most of the waiting time):
https://www.screencast.com/t/ASin8Yw7YB
I believe we need a different way of handling this. If the product is no longer reserved for the user, it can't be immediately reserved again when they return to the site if there's not enough available stock for that product.
In my example, when the user returns to the Cart, we need a way of telling the user that even though they had 10 products in the Cart, that stock is no longer available and they can only buy 5 now.