Forums / General Questions / where can i add a global custom email variable

where can i add a global custom email variable

Views: 1,004

Results 1 to 2 of 2
16 Dec 2013, 8:05 PM
#1
evelt avatar

evelt

Zen Follower

Join Date:
Nov 2009
Location:
In beautyful New York
Posts:
170
Plugin Contributions:
1

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

$_SESSION['customers_email_address']

where can I set it, and where is the others defined (like 'customer_first_name')

19 Dec 2013, 5:22 PM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: where can i add a global custom email variable

You need to add:

$_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