Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi Everybody !

I want to know how manage shopping cart in asp.net; using session, cookies , profile or anything else and which one is better all pros and cons. And also want to know which senario used in popular websites like amazon, snapdeal, etc....to handle large amount of customers.

when deduct stock from database with how manage a user can add available items in cart, when many users want to add a specific item in cart that have low stock.....

Posted
Updated 2-Dec-12 5:33am
v4
Comments
OriginalGriff 13-Oct-12 8:11am    
Good for you!
And what have you done so far to achieve this laudable aim?
[no name] 13-Oct-12 8:22am    
I found over 90 articles on this site alone that deal with shopping carts and you could not find anything in your exhaustive research?
Hemant Singh Rautela 13-Oct-12 9:01am    
I want a biggnner level artical, no doubt many articals are there, so that I asked to viewers some good one and easy for understanding.
[no name] 13-Oct-12 9:05am    
And exactly how are we to know what is "good and easy" for you? Your research is for you to do.
I.explore.code 13-Oct-12 13:26pm    
When you can ask thousands of people on a forum in hopes that someone will give you a readymade solution that u can just plug and play, why bother trying something or anything yourself, right? who would do that?

You adjust the inventory when they enter the checkout. You use 2 columns, actual and estimated, and base your inventory off both columns. When they make payment, you adjust the actual inventory and recalculate the estimated. When in the checkout lane, you adjust the estimated. If estimated <= actual, your sold out at the moment. There is no code snippet for it, it's like building a car engine, it can be simple or complicated.

Your going to have to figure out the logic, and how to handle abandoned carts. There is no real clear answer for that, because it depends on what your selling, and you didn't specify what your selling.

As far as session goes, and using more resources, I doubt that will be a problem at first. the issues you raised are so low on the scale of importance, they don't even register. Security is more the most complex aspect to a store.

But you have use something to identify who put the item in the cart. To ask someone for their ID first is kind of crazy.

Just FYI

Creating a store really requires a business, marketing and programming background, and years of experience in user interfaces. About 98% of all stores sit idle with no sales for 1 reason or another. The most common reason is zero traffic to the website, then poor marketing and next is price and competition, and the other is failing to be able to make payment. Other issues such as trust and smoothness of operation are key as well.
 
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