Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How do I get the email address?

How do I get the email address?

Views: 699

Results 1 to 3 of 3
28 Apr 2014, 6:54 PM
#1
lumiz avatar

lumiz

New Zenner

Join Date:
Jun 2010
Posts:
19
Plugin Contributions:
0

How do I get the email address?

Which is the variable for the email client, taking into account the sign.

for example

echo $customer->email;

Thanks

29 Apr 2014, 1:49 PM
#2
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Re: How do I get the email address?

If you're thinking OOP, note that there isn't a CUSTOMER model or class in ZC v1.x.x

Depending on where you are trying to reference the $customer variable, you will need to reference the array in which the data is currently stored.

Which page/section of your website are you trying to access the email address in? If you can give details as to which PHP file you are currently editing, I can let you know the correct syntax.

Absolute

30 Apr 2014, 7:11 PM
#3
lumiz avatar

lumiz

New Zenner

Join Date:
Jun 2010
Posts:
19
Plugin Contributions:
0

Re: How do I get the email address?

Hi, is in 'includes/modules/pages/example/header_php.php'..

Thanks