Magento – What happens if two people at the same time trying to buy same product with qty=1

magento-1.7onepage-checkoutproduct

I have bit confused about this. If there is a one product whose quantity = 1 and two customers
are trying to purchase it at the same time who can buy it? The person who starts the
checkout first or who clicks on the place order button first? Or who pass the payment method first?

Any clarification on this will be appreciated.

Best Answer

I tested this in my localhost by using two different browsers. The result was the person who clicks the 'place order' button first, only can buy the product. The other person will end up with an error message saying that 'qty for the requested product is not available'

Related Topic