Changing Email Greeting to show First Name Only
When a customer places an order they will receive an email that contains their invoice and the following text:
Hello John Smith, Thank you for your order. Please come back soon!
When the order status is changed to complete they will receive their order has been completed email that has the following text:
Hi John Smith, Your order has been completed successfully.
I would like to have just the Customers First Name show on all emails. I changed the code in salutation.tpl to the following and the First Name will show on Order Completed Emails but on the email that contains their invoice it will just show "Hello ,"
---------------------------------------------------
{* $Id: salutation.tpl,v 1.1 2010/05/21 08:32:15 joy Exp $ *}
{strip}
{if $salutation ne ""}
{$lng.eml_dear|substitute:"customer":"`$customer.f irstname`"}
{else}
{if $firstname eq "" and $lastname eq ""}
{$lng.eml_dear|substitute:"customer":"`$customer.f irstname`"}
{else}
{$lng.eml_dear|substitute:"customer":"`$customer.f irstname`"}
{/if}
{/if}
{/strip},
-----------------------------------------------------
I did also try to change the Language variable in eml_dear but I am not sure what to use to call out the First Name. I tried "firstname", "customer.firstname", ect but nothing worked.
Any help with this would be appreciated.
__________________
Hank
X-Cart 4.4.2
|