I'm wondering what the best practice way is of dealing with items that
are out of stock. I have an issue presently where I'm able to add items
to the basket but then cannot proceed further with the purchase.
Clearly, the purchase should not be able to proceed further but I'm
trying to work out the best way to prevent items being added to the
basket in the first place.
The recommendation appears to be to set the OutOfStockThreshold to 1 -
according to the do***entation - but this immediately prevents me from
being able to buy the last in-stock item. It does, however, still allow
me to add that final item to the basket but cannot proceed with the
order.
If I set the threshold to 0, I can add items to the basket that aren't
in stock at all. What logic is in place currently for the checkout
process to prevent me purchasing items that aren't in stock. This is
all aside from any pre-order and back-order considerations. I need this
so I can determine the logic for allowing products to be added to the
basket in the first place.
Thanks in advance,
Paul