Zen Cart Logo
Forums / General Questions / Email Welcome - use customer's first name only

Email Welcome - use customer's first name only

Locked

Views: 1,149

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
5 Dec 2010, 4:31 AM
#1
njka avatar

njka

New Zenner

Join Date:
Oct 2010
Posts:
18
Plugin Contributions:
0

Email Welcome - use customer's first name only

Hi there

I have had a rather disastrous play around with the createaccount.php file to try and change the Welcome Email to only use the customer's first name. I'm sure this is something simple but I don't know enough to figure it out. Here's the code I need to change:

// greeting salutation
define('EMAIL_SUBJECT', 'Welcome to Kodomo');
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");

Can anyone help? TIA

8 Dec 2010, 10:29 AM
#2
njka avatar

njka

New Zenner

Join Date:
Oct 2010
Posts:
18
Plugin Contributions:
0

Re: Email Welcome - use customer's first name only

Bump. Can anyone help a newbie? Thank you!

8 Dec 2010, 5:48 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Email Welcome - use customer's first name only

You'll have to hack apart the code in the create_account.php file so that it uses completely different details when sending, and then you'll have to alter your language files to remove the Mr or Ms etc

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Dec 2010, 9:07 PM
#4
njka avatar

njka

New Zenner

Join Date:
Oct 2010
Posts:
18
Plugin Contributions:
0

Re: Email Welcome - use customer's first name only

Thanks for the reponse, DrByte. If I read between the lines I think you're saying that I should just stick with the default setup! Will do for now.

13 Dec 2010, 2:36 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Email Welcome - use customer's first name only

You could alternatively disable the Gender selection in Admin->Configuration->Customer Details, and then it won't use Mr/Ms as the greeting.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Dec 2010, 8:49 PM
#6
njka avatar

njka

New Zenner

Join Date:
Oct 2010
Posts:
18
Plugin Contributions:
0

Re: Email Welcome - use customer's first name only

Thanks again, DrByte. Turning off gender selection wasn't exactly what I wanted to do but I think it is a good workaround.