Product Stock - Backorder
Backorder Vs. Out of Stock
When discussing backorder, we always ask ourselves, “What’s the difference between backorder and out-of-stock?”
The answer is pretty simple. “Out of stock” means an item has no stock available for purchase and no current date for resupply. In contrast, 'backorder' means an item is unavailable but already has a resupply date.
Unlike stock items, back-ordered items will eventually come back to your store for your customers to purchase
In the OMS, when the count_on_hand drops to zero, a product will be listed as Out Of Stock (OOS) in your store IF the Back-orderable flag is NOT checked.
OMS Store Stock
In our SDK starter, you can also create a product/variant that is OOS and not Back-orderable as a Waitlist, so your customers can sign up and be notified when the item is back in stock. For your customers to be notified, navigate to your Store Settings and add this Variable: STOCK_REQUESTS_NOTIFICATION_ENABLED and mark the value as "enabled" To validate that an item is back in stock, we check that the previous quantity was <= 0 AND the currently updated quantity is > 0, AND The stock item is not back-orderable
If there is stock available in your OMS and the variant is marked "Out Of Stock" in Contentful, the OMS bypasses whatever settings are in Contentful.
When the count_on_hand drops to zero AND the Back-orderable flag is checked, your customers can still complete orders for items with no available inventory. The order/product will be listed as Backordered, and the Count on hand will be decremented to a negative number.
Stores can limit the number of backorders the OMS will accept by specifying a backorder limit. When the Count On Hand equals the Backorder Limit, the OMS will reject orders for that product.
For example, a product has a backorder limit of 5, and the current count on hand is -4. The OMS will complete an order for one unit of the product, bringing the current count on hand to -5. If another order for the product is submitted, the OMS will reject it (count on hand -5 equals the backorder limit of 5).
If a product is assigned a backorder limit of 0, then the backorder limit will not be enforced. The OMS will accept unlimited backorders for the product.
This product is back-orderable with 5 units on hand and a backorder limit of 5.
Orders for 9 units are completed, reducing the count on hand from 5 to -4. Because the product is back-orderable and the number of backorders is within the backorder limit, the OMS will continue to accept orders. The product will also be in stock in the store.
An order is completed for one more unit of the product. The count on hand is -5, but still within the backorder limit. However, since the number of backorders equals the backorder limit, the product can no longer be backordered, so back-orderable is false.
The product is now shown as Out of Stock in the store.
If three orders are canceled, or stock arrives, and some backorders are processed, the count on hand increments by three from -5 to -2, and the product is again back-orderable.
The product is back in stock in the store.