An item with one unit in stock may be open in two customers' browsers at once. A buy button appearing on both screens is not itself an error. The issue is how the server checks remaining quantity when an order is confirmed and how pending payment operations are handled.

Do not confuse adding to cart with reserving stock

A cart can remain open for days. Reserving products indefinitely on every addition can make sellable stock unavailable. Reserving nothing when payment begins, however, may increase conflicts. The business should define when reservations start and end. Customer explanations must match that rule; being in a cart must not be presented as a guaranteed purchase.

Treat the final stock check as one operation

Check current stock when creating an order instead of trusting the displayed quantity. Account for other operations consuming the same item between checking and changing the quantity. Ask the development team to demonstrate two simultaneous purchases. Sequential attempts alone may miss timing problems. Records should explain which order was accepted.

Design how pending payments end

Payment can fail, the user may close the window or the result may arrive late. Define what happens to reserved stock in each case. A successful payment notification arriving after a reservation expires deserves particular attention. If automatic handling is impossible, create a review queue. Silently showing 'preparing' for a product that does not exist is not a correct solution.

Separate the stock effects of cancellations and returns

Cancelling an unprepared order and returning a used product are not the same stock movement. Opening a return record does not make the product sellable again. The quantity released for sale may require a separate decision after warehouse receipt. Keeping the reason and related order with each stock movement lets staff investigate differences; the latest quantity alone cannot answer why.

Mark pre-order products separately from ordinary stock. If this option exists, customers should understand the estimated preparation time and that their order will not ship from current stock when choosing it. Explaining this only after stock becomes negative is insufficient.

Concurrent sales tests

  • Have two parallel purchases of the final unit been tested?
  • Is quantity released when a reservation expires?
  • Are late payment results handled?
  • Does a repeated notification deduct stock again?
  • Can returns and cancellations be traced with their reasons?

With Cypher Software, you can assess e-commerce stock flows against actual warehouse rules. The solution is about consistent sales and preparation decisions, not simply displaying a number.