Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder Baleric's Avatar
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    332
    Thanks
    0
    Thanked 0 Times in 0 Posts

    help with shopping cart.

    hey guys, i need a little help making a shopping cart.
    what do i use to carry items from page to page, also how do i add the total prices of all selected items.
    i have no promlems with making the website i just need to know what to do when someone clicks add to cart.
    and how i show how mamy items they have already in there cart.
    please help or point me in the right direction, im completely stumped at the moment.

    thanks in advance

    -baleric.

  • #2
    New to the CF scene
    Join Date
    Apr 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try using a database for each customer account - use "CREATE TABLE..." as the SQL command whenever someone creates the account and then have a picture as the shopping cart - when someone clicks the picture, it takes the values of all the forms, multiplies them by the price (if needed) and enters the data into the database. At least... thats the only way I can think of.

    RC

  • #3
    Regular Coder Baleric's Avatar
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    332
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hmmm, anyone else know any other ways, like using variables or sumthing

  • #4
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts

  • #5
    Regular Coder Baleric's Avatar
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    332
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes, but how do i create a session for each item added to cart.
    eg. if i add item 122 to the cart and item 56 then how do i retreive the all the sessions created, is there a command?
    or do i have to say something liek.
    if sesison("1") = true then ""
    if sesison("2") = true then ""
    if sesison("3") = true then ""
    all the way upto the last item.
    do you know wat i mean?
    if i know how to retrieve all sessions that have been created then i can do it so simple.

    please hlp

    cheers.

  • #6
    Regular Coder Baleric's Avatar
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    332
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok, just found out how to do that, list all sessions.

    Code:
    <%
    dim i
    dim j
    j=Session.Contents.Count
    Response.Write("Session variables: " & j)
    For i=1 to j
      Response.Write(Session.Contents(i) & "<br />")
    Next
    %>
    now im curious, because if i us this code, it lists my username session and my session that allows access to my admin pages. how do i exclude them.

  • #7
    Regular Coder Baleric's Avatar
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    332
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ...... anyone?


  •  

    Posting Permissions

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