Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2008
    Posts
    15
    Plugin Contributions
    0

    Default show customer email address

    I'm trying to edit my checkout page to display the customer's email address (with an edit button, so they can change it if they typed it in wrong), but I can't figure out how.

    Based on what create_account.php does with the original email address input, I thought the following would work, but it didn't:

    echo ($_SESSION['customers_email_address']);

    I've used the Developer's Tool Kit to look for clues, searched the forums hoping the question had come up before, and tried all sorts of variations I knew wouldn't work, but no luck.

    I'm new to php and have not fully mastered the way it uses variables and arrays. Could someone please point me in the right direction? Thanks!

  2. #2
    Join Date
    Jul 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: show customer email address

    Never mind. On further examination I realized that the solution was to add

    $_SESSION['customers_email_address'] = $email_address;

    to create_account.php. There is a little cluster of $_SESSION variables set near the end, but an email address variable wasn't one of them because the program as written wasn't planning on calling for it.

 

 

Similar Threads

  1. Adding second customer email address
    By slowawake in forum General Questions
    Replies: 6
    Last Post: 25 Jun 2008, 11:15 AM
  2. New customer discount duplicate email address
    By Phil020782 in forum General Questions
    Replies: 1
    Last Post: 13 Nov 2007, 09:55 PM

Bookmarks

Posting Permissions

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