Two Page order form design/scripts/cart?

Discussion in 'HTML & Website Design' started by ecigazon, Jan 29, 2010.

  1. #1
    Wondering if anyone can point me in the proper direction on this question.

    I'm not quite sure how to set this up. I've setup carts before but I'm looking for a less complex solution than a full blown cart.

    More or less the 2 page order forms that most affiliate offers seem to use.

    page 1 = misc data collection like name address etc
    page 2 = payment information

    Is there a simple approach to this? Can anyone point me in the right direction. I've looked at various resources and looked around at a few pages html that work like this, but am still at a loss for how this works.

    My current payment gateway is authorize.net if that makes any difference in the approach or resources.
     
    ecigazon, Jan 29, 2010 IP
  2. harrierdh

    harrierdh Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    That kind of process is sometimes called wizards. Generally you would submit the first page to the server and save the data. Then redirect to the second page and that would get submitted to the server and saved.

    There are ways to do this on the client only. You will however, be limited by the size of your data. Assuming you passed the data on the query string. There are other factors. Does the user have javascript disabled? You could write cookies but, does the user have cookies disabled?

    Best to do this with some server side code.
     
    harrierdh, Jan 29, 2010 IP
  3. ecigazon

    ecigazon Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I ended up writing a one page version that relies on ajax. It functions similarly but all on one page. Have everything in place and working. Including the authorize.net integration and some minor error processing. I even hacked an aweber integration that opts into the a list in realtime and a few auto complete fields to make ordering easier.

    Just have validation stuff left, but all in all I'm very happy with the results.
     
    ecigazon, Jan 30, 2010 IP