When developing an ajax based shopping basket for an ecommerce site what are some of the best practices?
Im interested in all best practices but i am particularly interested in how stock levels are managed. By this i mean say a customer goes to a product screen then at page load i would assume that they cannot put more than is available in stock in to their basket. Say though they add 2 items of that product into their basket then should this temporarliy reduce the stock levels throughout the site for any other customer or should all of this be handled at the checkout?