I’m having trouble figuring out how to handle stock levels in a new
store I’m building. When products are entered into the admin of the
store, they have a stock number associated with them.
What I’m not sure about, is how I go about maintaining this stock
level. Take this scenario:
- User A adds an item to their cart, and I check that it’s in stock -
- User A continues to shop
- User B adds the same item to their cart, and I check the stock
again - fine again.
- User B checks out, pays for the item, and I decrement the stock
level for that product
- User A is out of luck because someone has bought what’s in their cart
How do you handle this situation?
Many thanks for any advice.