Thursday, March 22, 2012

Shopping Cart...

Hi I need to make a Shopping Cart and can some one suggest me how should I implement it...

I mean I am not much more confident about using cookies and make sure that it don't get used next time...

If someone can show me how to add 2 items and then retrive it when viewing cart and how to delete 1 of them I would really appreciate it...

I am using ASP.NET / VB.NET

Cheers...Use a database as your datastore, not cookies.
I'm in the process of building a shopping cart, and I've come accross a great tutorial that uses DataTables to store the items and quantities for the carts.

www.sitepoint.com/print/1055 (http://www.sitepoint.com/print/1055)
Originally posted by Lethal
Use a database as your datastore, not cookies. What will happen when 10 ppl uses it same time...How am I going to recognize that users has already done the check out or logoff without even bothering what he/she added in cart...

What if all 10 are trying to access the data at the same time...?

Can u give some hint please...? Actually I was thinking of Database option myself...

Cheers...
Here's a quote from the article...

DataTables provide you with a way to dynamically create a purely memory-resident representation of a database table. Typically, you'd fill a DataTable from an existing database, but you could also create one programmatically, as will be the case here.

From what I gather, creating the shopping cart with a DataTable is pretty similar to keeping the shopping cart information in a table in your database.
Originally posted by PedroDePacos
I'm in the process of building a shopping cart, and I've come accross a great tutorial that uses DataTables to store the items and quantities for the carts.

www.sitepoint.com/print/1055 (http://www.sitepoint.com/print/1055) Thanks for that M8...I will check it out but can I ask you to do me a favour...Can u post me the code what u have made so far...?

Nothing serious if u think its not good for you to give me the code then its cool too...

Cheers...
Originally posted by PedroDePacos
Here's a quote from the article...



From what I gather, creating the shopping cart with a DataTable is pretty similar to keeping the shopping cart information in a table in your database. OK I will check that out...

Cheers...
* BUMP *

0 comments:

Post a Comment