31
General Discussion / Re: Product count goes negative on two persons trying to checkout at sametime.
« on: June 04, 2018, 07:02:10 AM »
By default AbanteCart does not limit customers to place orders in this situation. This is not a easy solution.
If stock restriction is very critical for the business, there are some solutions:
1. it is possible to implement stock check validation during confirmation stage.
There are some considerations to make here.
Should system prevent payment in such situation or allow payment and than check for stock.
Placing validation before payment will not solve problem entirely as second customer might be still typing payment details and the other one already completed.
Payment for one customer might fail and you refuse the second customer of good sale.
If stock validation is done after the successful payment, than payment must support auto refund in event customer is not allowed to place an order.
Keep in mind that customer might have multiple items in the cart and that can cause loss of sale for good products.
2. Some companies implement time lock for stock and release it back if no purchase happened.
Customer will be advised that they have N minutes to checkout.
If this case stock is locked (deducted) during adding to cart process.
You will need to create a backend process to release items to stock.
We are aware of this and considering if we implement one of the solutions in v2.0.
If stock restriction is very critical for the business, there are some solutions:
1. it is possible to implement stock check validation during confirmation stage.
There are some considerations to make here.
Should system prevent payment in such situation or allow payment and than check for stock.
Placing validation before payment will not solve problem entirely as second customer might be still typing payment details and the other one already completed.
Payment for one customer might fail and you refuse the second customer of good sale.
If stock validation is done after the successful payment, than payment must support auto refund in event customer is not allowed to place an order.
Keep in mind that customer might have multiple items in the cart and that can cause loss of sale for good products.
2. Some companies implement time lock for stock and release it back if no purchase happened.
Customer will be advised that they have N minutes to checkout.
If this case stock is locked (deducted) during adding to cart process.
You will need to create a backend process to release items to stock.
We are aware of this and considering if we implement one of the solutions in v2.0.