Results 1 to 6 of 6

Thread: shopping w/o logging in

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2006
    Posts
    719

    shopping w/o logging in

    shopping cart... why most of the online shopping website can add item to cart even without logging in? how did they do that in asp.net?

  2. #2
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Re: shopping w/o logging in

    Cookies, session IDs?

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2006
    Posts
    719

    Re: shopping w/o logging in

    Cookies, session IDs?
    How?

    Because it in my MSSQL it goes like this; 'Select * From MOrder WHERE CustID=" & cCusID

    How about when there is no current user?

  4. #4
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: shopping w/o logging in

    Cookies, session IDs?
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  5. #5
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Re: shopping w/o logging in

    Quote Originally Posted by arshesander View Post
    How?

    Because it in my MSSQL it goes like this; 'Select * From MOrder WHERE CustID=" & cCusID

    How about when there is no current user?
    You need to map an order/shopping cart to a session ID (which you can retrieve from the session) and later, when the user decides to check out and log in with his/her credentials, map the session ID to the user ID to complete the check out.

    If you are currently mapping the order/shopping cart to a customer ID (which I believe you are), you may have to change that logic.

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  6. #6
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: shopping w/o logging in

    Hello,

    For getting more information about this, it might help to look at a complete sample. There are a number of them available here:

    http://www.asp.net/web-forms/samples

    And I am sure that at least one of them will have a Shopping Cart that has the functionality that you require.

    Gary

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