I am having a right ball game with a issue. I have written a AJAX cart system for a wholesale website we are developing. There is one long list of products and you can just enter your quantity in each of the boxes, click add to cart and it will run through adding these all to your cart. HOWEVER, I am having major issues. If a product has 10 in stock and I add 10 to my cart I want it to display 0 to the rest of the world because otherwise I get an error as the "live" stock level is not 10, it is 0 because the user has technically reserved the item according to Magento.
Does anyone have any idea how I can pull more of a live stock level rather than this which shows the inventory:
(int) Mage::getModel('cataloginventory/stock_item')->loadByProduct($_item)->getQty()
Thank you in advance.