close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Populate Checkout with logged in users details

Thread began 6/23/2010 4:35 am by david331670 | Last modified 6/23/2010 10:17 am by Jason Byrnes | 648 views | 1 replies |

david331670

Populate Checkout with logged in users details

Hi, stuck again
I have added a online order only system to a web site. I have created the cart, the shopping cart display, the checkout and confirm pages.
I use security assist to have users log in and out.
I want to populate the checkout page with the users login details.
First Name I have added first name session variable and use <?php echo $_SESSION['firstname']; ?> and it displays the user first name.
For last name I tried to do the same thing and I get "<br /> <b>Notice</b>: Undefined index: lastname in <b>/Applications/MAMP/htdocs/checkout.php</b> on line <b>95</b><br />" displayed in the Last name field.
I have set up a recordset for users and have added <?php echo $row_rsUsers['email']; ?> for the email. I get an email address that is the first on the user list, not the logged in user.
How Can I get this to work, I know I'm more than likely staring it in the face but I cant get it to work. It works ok on my other web site but that is a shop, not just an order system.
Thanks for you patience
David

Sign in to reply to this post

Jason ByrnesWebAssist

see the "Applying Register/Login to your checkout" and "Automatically populating checkout fields" tutorial on the eCart support page for a step by step walk through for accomplishing this.

ecart/

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...