Full Customer Name in E-Mails

  • Posts: 159
  • Thank you received: 2
10 years 5 months ago #161407

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

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 5 months ago #161409

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.

Please Log in or Create an account to join the conversation.

  • Posts: 159
  • Thank you received: 2
10 years 5 months ago #161606

Thanks, that worked perfect!

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum