- Posts: 159
- Thank you received: 2
Full Customer Name in E-Mails
12 years 3 months ago #161407
by Rokell
Full Customer Name in E-Mails was created by Rokell
Hi,
I'm trying to put the full customer name (name and surname) in the confirmation email. I found this in the HTML code of the mail:
<h3 style="color:#6e6e6e !important; font-size:14px; font-weight:normal; font-weight:bold;margin-bottom:0px;padding:0px;">{TXT:HI_CUSTOMER}</h3>
Would that be the right place to put it and if yes how? {TXT:HI_CUSTOMER} doesn't show the surname.
Thanks
Roger
I'm trying to put the full customer name (name and surname) in the confirmation email. I found this in the HTML code of the mail:
<h3 style="color:#6e6e6e !important; font-size:14px; font-weight:normal; font-weight:bold;margin-bottom:0px;padding:0px;">{TXT:HI_CUSTOMER}</h3>
Would that be the right place to put it and if yes how? {TXT:HI_CUSTOMER} doesn't show the surname.
Thanks
Roger
Please Log in or Create an account to join the conversation.
12 years 3 months ago #161409
by nicolas
Replied by nicolas on topic Full Customer Name in E-Mails
Hi,
You need to change the line:
$customer_name = @$customer->name;
to:
$customer_name = @$data->cart->billing_address->address_firstname.' '.@$data->cart->billing_address->address_lastname;
in the preload version of the email (bottom of the page when you edit the email via the menu System>Emails.
You need to change the line:
$customer_name = @$customer->name;
to:
$customer_name = @$data->cart->billing_address->address_firstname.' '.@$data->cart->billing_address->address_lastname;
in the preload version of the email (bottom of the page when you edit the email via the menu System>Emails.
Please Log in or Create an account to join the conversation.
12 years 3 months ago #161606
by Rokell
Replied by Rokell on topic Full Customer Name in E-Mails
Thanks, that worked perfect!
Please Log in or Create an account to join the conversation.
Time to create page: 0.186 seconds