Click here to Skip to main content
15,568,965 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi all,

I have a scenario. Suppose that item quantity in stock is 1 and then two users add the product to cart simultaneously then which user should get the product and which user should get the message of items having not in stock or is there something else that I should do?

I don't want any code. I just need help with the logic. I'll do the coding by myself.

Thanks for the help.
Posted
Updated 2-Feb-12 0:39am
v2
Comments
Slacker007 2-Feb-12 5:39am    
Edits made: formatting

1 solution

My Suggestion is that u can use the time of purchase of that product upto seconds. even that too are similar u can prioritize based on time they logged in.
hope this will be helpful.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900