Hello,
Just customizing my Welcome email. Read all the threads and found almost everything I needed. If %s is the variable to show the customer's last name, what is the variable to show the first name? Hopefully an easy answer!!
Thanks in advance!![]()
Hello,
Just customizing my Welcome email. Read all the threads and found almost everything I needed. If %s is the variable to show the customer's last name, what is the variable to show the first name? Hopefully an easy answer!!
Thanks in advance!![]()
Cowspot, www.cowspotbeads.com
Zen 1.3.8a, InternetSecure Payment Mod, Custom Bundles Mod
SuperTracker Mod, Who Referred You? Mod, Recover Cart Sales
I looked in the /email/ directory and the code for the email_template_direct_email.html shows the following:
Dear $EMAIL_FIRST_NAME $EMAIL_LAST_NAME
Where did you get %s?
I did a search of all the files in version 1.3.8a with Dreamweaver and the %s shows up all over the place for all kinds of different stuff.
Steve
Zen cart version: 1.3.9h
Hey,
It is in the \includes\languages\english\create_account.php
[SCR]define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");
define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n");[/SCR]
Thanks!
Cowspot, www.cowspotbeads.com
Zen 1.3.8a, InternetSecure Payment Mod, Custom Bundles Mod
SuperTracker Mod, Who Referred You? Mod, Recover Cart Sales
Sorry the code is:
define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");
define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n");
Thanks!
Cowspot, www.cowspotbeads.com
Zen 1.3.8a, InternetSecure Payment Mod, Custom Bundles Mod
SuperTracker Mod, Who Referred You? Mod, Recover Cart Sales
I edit admin/email_welcome.php like this. I just commented out the Mr and Mrs stuff so it default to first name as if no gender was specified.
// build the message content
// if (ACCOUNT_GENDER == 'true') {
// if ($gender == 'm') {
// $email_text = sprintf(EMAIL_GREET_MR, $lastname);
// } else {
// $email_text = sprintf(EMAIL_GREET_MS, $lastname);
// }
// } else {
$email_text = sprintf(EMAIL_GREET_NONE, $firstname);
// }
$html_msg['EMAIL_GREETING'] = str_replace('\n','',$email_text);
$html_msg['EMAIL_FIRST_NAME'] = $firstname;
$html_msg['EMAIL_LAST_NAME'] = $lastname;