Final Checkout Stock Check
Posted by Ben R. Cowin • Stock Position • January 22nd, 2016
As we are caching the stock value it is important we do not make a sale based on an out of date stock position. As the user reaches their final checkout step, the Sage stock database is queried one final time to get the exact stock position. If there is insufficient stock to fulfil the order, either:
- the user can be redirected to the basket to be notified of the status of the order,
- the user can be redirected to the basket, the quantity reduced to match stock available and the customer notified,
- or if the product is on backorder, the order will continue to be placed.