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
If a customer adds an item to cart, can I change the stock?
Or have some kind of shadow-stock?
Like.. When somebody else adds it to their shopping cart, it reduces the stock for two hours until buying?
We don't have anything built in for this so it would require some custom development.
Best approach I could think of would be to create a custom in memory cache storing the an order id + product ref + qty and then combining this with your product page logic to define the stock as being the stock level on record - whatever is in the memory cache. You'd then need some kind of sliding expiration on the cache.
You should be able to hook into events to know when something is added to cart and you could also create some custom validation handlers to prevent an item being added if the cumulative stock level goes below 0.
Hope this helps
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted