Mardok Posted August 30, 2021 Share Posted August 30, 2021 Hi everyone, I did a test on my site where a last product is bought almost simultaneously by two customers. It happens that both customers the order is successful, but in the back office one is awaiting payment (and it is correct) and the other awaiting restocking (and I believe that as soon as I install the stripe module the two transactions they will be acquired normally. is there a way to ensure that the customer who arrives "second" instead of a successful order, does not make the transaction at all by returning an error to the customer of the product type out of stock? Thank you all. Link to comment Share on other sites More sharing options...
Janett Posted August 31, 2021 Share Posted August 31, 2021 (edited) You have to build a queue system in this kind of case, similar to what you can find on ticket booking system for big events. The principle is simple, each customer has 15 minutes to complete his payment from the moment his cart is considered complete. At this time, products in his cart are placed in reserved stock, if the payment is not confirmed after 15 minutes, customer is ejected from the order tunnel and returns to the start of the queue, the stock reserved is replaced in global stock. The payment platforms allow you to indicate the maximum time allowed on the payment page in the optional parameters (this is the case of Worldline which I use for example), however the management of the queue must be done on your side. Thanks to a PrestaShop module, there are some on Addons like the one from LonelyStock. The fault of most current modules is the management of the queue and the reserved stock which is bad, I recommend a specific development Edited August 31, 2021 by Janett (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now