Last post Sep 25, 2018 07:32 AM by Brando ZWZ
Sep 22, 2018 08:59 AM|EssCee|LINK
Sep 22, 2018 02:00 PM|mgebhard|LINK
IMHO, this is not a good question for a support forum because there's no specific answer and an infinite number of possible designs.
The simplest solution is always validating inventory are the point of sale and reducing inventory depending on the result of the sale. Preferably this action is done in a transaction. This means other users might have product in their cart that will not
longer pass validation. How you deal with invalided cart items depends on the requirements and is generally up to a business owner. Someone that explains how the system should work.
Again, there too many possible solutions and no posted requirements to narrow down the solutions.
Sep 25, 2018 07:32 AM|Brando ZWZ|LINK
In my opinion, we have two solutions.
One is selling exceed the stock.
By using this solution, we could subtract the quantity from the total amount when the has just made a successful payment for the product.If someone also made a successful payment for the product, you could connect to the product provider to ask for more stocks
and send the product later for the user.
Another solution is we should subtract the quantity from the total amount when user redirect to the payment page.
When user has redirect to he payment page, you could set a timout at the page to count the user payment time.If user has exceed the payment time and give up paying, you could re-add the quantity from the total amount.