Forum Moderators: open

Message Too Old, No Replies

ASP.Net Shopping cart

What is the best way to implement one

         

Red_Eye

12:06 pm on Feb 20, 2004 (gmt 0)

10+ Year Member



I am creating a new website I want to add a shopping cart what is the best way to store a shopping cart. In a DB a session a xml file?

This would be a temporary cart for visitors once they went to the checkout it would be saved to the db.

Any susggestions.

wackal

3:25 pm on Feb 20, 2004 (gmt 0)

10+ Year Member



You'll probably get a lot of different responses, but I would suggest using some combination of an array and cookies. All the calculations are done in an array, but then the info is stored in a cookie. sessions can get crazy if there's too many visitors to your site and a db is too intensive if all you want is a temporary cart. just my 2 cents.

Red_Eye

3:08 pm on Feb 23, 2004 (gmt 0)

10+ Year Member



What I have decided is to keep the information in a DataTable in a Session When a user goes to the checkout this is copied to database.

wackal

9:18 pm on Feb 23, 2004 (gmt 0)

10+ Year Member



that's one way to do it. keep in mind that with sessions, the more visitors to your site, the slower your site will be.

Also with sessions, if the customer leaves before checking out, his order is gone.

Red_Eye

12:21 pm on Feb 24, 2004 (gmt 0)

10+ Year Member



Good Point as suggested before it might be better to use cookies.

mstermet

5:00 pm on Feb 24, 2004 (gmt 0)




I found ASP.NET's Commerce Starter Kit super helpful for an ASP.NET solution.

[asp.net...]

Mark