stock in order
if i have in my data base qty in stock
i want check qty in stock is apply or not
coustomer need 5 pic from mobile but i have only 4 mobile in my stock
another proplem Lets say there's a product with the quantity = 1 . what happens when 2 customers buy it at the same time? I mean there should be a way to reserve that product when ever a user adds it to his shopping cart.
how i do this