close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

create account after first order, then add order to order history

Thread began 7/06/2011 7:00 am by CraigR | Last modified 7/07/2011 7:49 am by Jason Byrnes | 921 views | 1 replies |

CraigRBeta Tester

create account after first order, then add order to order history

I have added a button to the checkout success page, to enable a customer, who doesn't yet have an account, to create one, using their name and billing details from the latest transaction.

However, at the point the order was placed, the customer had no account details, so the order wasn't associated with them, therefore will not appear in their order history.

My thought was, store the session_id in the form to be posted with the other details, so I can update the orders table after the new account is created. The form is then populated, just before my session is killed.

However, though my other form fields are successfully posted to my registration page, the session id isn't.

all i am doing is a simple echo $_POST['fieldname']

Sign in to reply to this post

Jason ByrnesWebAssist

to be able to create the order history, the customer should be creating the account before they place the order, not after. it's rather backwards to create the account after the order is placed.


as for the form element not having a value the checkout success page, that is to be expected.

the confirm page is set to post to itself, process the transaction, then redirect to the success page.

the form data is only available to the forms action page. once the action page is done loading or redirects to another p[age, the form data is not longer available.

there is no post being made to the success page.

once the success page loads and the session is cleared. there is no way to tie the order to the user

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...