Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Morten Christensen 61 posts 215 karma points
    Sep 05, 2012 @ 11:39
    Morten Christensen
    0

    Optimistic stock system

    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?

     

  • Anders Burla 2560 posts 8256 karma points
    Sep 05, 2012 @ 14:33
    Anders Burla
    0

    Hi Morten

    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?

    Kind regards
    Anders

  • Morten Christensen 61 posts 215 karma points
    Sep 05, 2012 @ 15:09
    Morten Christensen
    0

    Hi Anders,

    Ok, just want be sure I couldn't do it out of the box.
    What you describe is what I had in my mind :)

    Thanks!

    Morten

Please Sign in or register to post replies

Write your reply to:

Draft