New Zenner
- Join Date:
- Sep 2010
- Posts:
- 59
- Plugin Contributions:
- 0
Add field into order success email - code not working
Hi guys,
I am trying to add the customer login email address to the top of the the order success email.
Currently the customer login email is in the footer under the "office use only" section.
I have attempted to code it in just under the $EMAIL_FIRST_NAME $EMAIL_LAST_NAME, section of the email.
What I have tried thus far:
Under classes/order.php I have added the line in red:
$html_msg['EMAIL_FIRST_NAME'] = $this->customer['firstname'];
$html_msg['EMAIL_LAST_NAME'] = $this->customer['lastname'];
$html_msg['EMAIL_CUSTOMER_EMAIL'] = $this->customer['login_email'];
Within the email/email_template_checkout.html I have added the following in red:
$EMAIL_FIRST_NAME $EMAIL_LAST_NAME,<br />
$EMAIL_CUSTOMER_EMAIL<br />
However when checking the success order email nothing is showing.
If someone could assist me it would be much appreciated.
Thanks,
Elliot