kael21 Posted July 17, 2008 Posted July 17, 2008 The email received upon account sign up greets the new member by their gender and last name. This code is stored in the create_account.php file. =============== define('EMAIL_SUBJECT', 'Welcome to ' . STORE_NAME); define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n"); define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n"); define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n"); =============== I want to change this so that the greeting is "Dear First name Last name" and not "Dear Mr. last name". What code and files do I need to change to make this happen? I'm a beginner...be gentle and detailed please ;-)
kael21 Posted July 20, 2008 Author Posted July 20, 2008 The email received upon account sign up greets the new member by their gender and last name. This code is stored in the create_account.php file. =============== define('EMAIL_SUBJECT', 'Welcome to ' . STORE_NAME); define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n"); define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n"); define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n"); =============== I want to change this so that the greeting is "Dear First name Last name" and not "Dear Mr. last name". What code and files do I need to change to make this happen? I'm a beginner...be gentle and detailed please ;-) Can anyone help with this?
germ Posted July 20, 2008 Posted July 20, 2008 In /catalog/create_account.php change this code: 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); } to this: if (ACCOUNT_GENDER == 'true') { if ($gender == 'm') { $email_text = sprintf(EMAIL_GREET_NONE, $name); } else { $email_text = sprintf(EMAIL_GREET_NONE, $name); } } else { $email_text = sprintf(EMAIL_GREET_NONE, $name); } It's always a good idea to make a backup of any file before editing. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.