Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Shopping Cart In ASP.NET

  • 26-04-2005 07:52PM
    #1
    Registered Users, Registered Users 2 Posts: 574 ✭✭✭


    hey guys,

    im just wondering if ye can help. im trying to design a shopping cart in asp.net. im using a datagrid as the cart and what i want to do is when i click on a button on a page, the details from that item will go into the datagrid.

    i'm trying to pass in parameters and am using a session aswell!

    my head is just all over the place and any advice ot help would be greatly appreciated

    thanks again!


Comments

  • Registered Users, Registered Users 2 Posts: 4,123 ✭✭✭muckwarrior


    I found this extrememly useful when building a shopping cart in ASP.NET
    http://www.ibuyspy.com/CommerceStarterKit/


  • Moderators, Science, Health & Environment Moderators Posts: 9,206 Mod ✭✭✭✭mewso


    Just off the top of my head. Create a table for temprary shoppers and a table for temporary cart items. When a session starts add the visitor to this table retrieving the new id and then when they add an item to their cart add it to the items table with the temporary id.
    When the session ends delete the temporary user and any items for that user from the item table. If they checkout you will be getting the user to either login or register and then moving the items in the cart to a purchased items table with their new permanent id.
    The grid can be refreshed whenever needed to show the items in the temporary items table.


Advertisement