Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi Tea Commerce,
Is it possible to change the optimistic stock system to (I guess) pessimistic stock?I'm building a ticket shop system where I need to take from stock when the user add to basket. If the user doesn't complete the order process within 10 minutes, the tickets will go back in stock again. Of course the 10 minutes thing would be some custom code, but is possible to do that with the stock system?
Tea Commerce doesn't support pessimistic stock control out of the box. What I think you will have to do (from a concept point of view ) is to hook into the OrderLineAdded event and change the stock for the item. Then you write a custom service that runs and check which cart has been inactive for more than 10 min and delete them and change the stock for the items in the cart. Does this sounds it could work for your case?
Ok, just want be sure I couldn't do it out of the box.What you describe is what I had in my mind :)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted