Results 1 to 8 of 8

Thread: Shopping Cart...

  1. #1

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Thumbs down 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...

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Use a database as your datastore, not cookies.

  3. #3
    Lively Member
    Join Date
    Nov 2001
    Posts
    85

    Shopping Cart Using DataTables

    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

  4. #4

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695
    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...

  5. #5

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Re: Shopping Cart Using DataTables

    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
    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...

  6. #6
    Lively Member
    Join Date
    Nov 2001
    Posts
    85

    DataTable

    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.

  7. #7

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Re: DataTable

    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...

  8. #8

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695
    * BUMP *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width