Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Location
    In beautyful New York
    Posts
    160
    Plugin Contributions
    2

    Default where can i add a global custom email variable

    I need to create a form and one of the fields is "Email" which I would like to populate if logged in with the customers email address.

    the contact us page does it but there is no global variable to call the customers email address something like this
    PHP Code:
    $_SESSION['customers_email_address'
    where can I set it, and where is the others defined (like 'customer_first_name')

  2. #2
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,732
    Plugin Contributions
    27

    Default Re: where can i add a global custom email variable

    You need to add:
    Code:
    $_SESSION['customers_email_address']  = $check_customer->fields['customers_email_address'];
    in the file:
    includes/modules/pages/login/header_php.php

    as the $check_customers_query is already looking up the value :)
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

 

 

Similar Threads

  1. v154 Naming a global variable the same as a SESSION, GET or POST variable
    By torvista in forum General Questions
    Replies: 5
    Last Post: 6 Dec 2015, 11:11 AM
  2. Why isn't my global variable working?
    By lat9 in forum General Questions
    Replies: 1
    Last Post: 1 Oct 2009, 03:58 PM
  3. custom Add Customer email (need custom welcome email)
    By rennsix in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 8 Dec 2007, 08:06 AM
  4. Where can I set a new variable?
    By Dan Ballance in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Jun 2007, 11:30 AM

Posting Permissions

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