Zen Cart Logo
Forums / General Questions / Welcome email AHHHHHH

Welcome email AHHHHHH

Locked

Views: 3,780

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
23 May 2006, 11:30 PM
#1
desopolis avatar

desopolis

New Zenner

Join Date:
Feb 2006
Posts:
32
Plugin Contributions:
0

Welcome email AHHHHHH

ive been through the doc files and see how it works but where is the actuall text located?
create_account.php?

23 May 2006, 11:37 PM
#2
desopolis avatar

desopolis

New Zenner

Join Date:
Feb 2006
Posts:
32
Plugin Contributions:
0

Re: Welcome email AHHHHHH

yep thats where it is...
languages/english/create_account.php

23 May 2006, 11:38 PM
#3
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Welcome email AHHHHHH

The developpers tool kit is your best friend for seeking words you are unable to track / find.

From your admin section, go to: Tools - > Developpers Tool Kit and type on the first textbox: "Welcome message". Then, on your right, make sure to switch from ' none ' to ' store '. :wink2:

1 Jun 2006, 1:01 AM
#4
polarduality avatar

polarduality

Zen Follower

Join Date:
Mar 2006
Location:
Los Angeles
Posts:
260
Plugin Contributions:
2

Re: Welcome email AHHHHHH

Hi,

I'm trying to change the greeting to say Dear Firstname.
This is the first time I dwell into this and I am not a php expert :) so I need a little help.

original define

define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");

Is this the correct way to apply the change I am looking for?

define('EMAIL_GREET_MR', Dear $EMAIL_FIRST_NAME,' . "\n\n");

Thanks

1 Jun 2006, 1:12 AM
#5
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Welcome email AHHHHHH

define('EMAIL_GREET_MR', Dear $EMAIL_FIRST_NAME,' . "\n\n");

It is doubtful this variable is being tracked from the language definition file you edited. Which is why, the '%s' was being used instead. :wink2:

1 Jun 2006, 1:20 AM
#6
polarduality avatar

polarduality

Zen Follower

Join Date:
Mar 2006
Location:
Los Angeles
Posts:
260
Plugin Contributions:
2

Re: Welcome email AHHHHHH

that was the create_account.php language file I was trying to edit.

So where would I need to make this change?

*pulls hair

1 Jun 2006, 1:26 AM
#7
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Welcome email AHHHHHH

In your includes/modules/create_account.php file,

find:

$email_text = sprintf(EMAIL_GREET_MR, $lastname);
} else {
$email_text = sprintf(EMAIL_GREET_MS, $lastname);

replace with:

$email_text = sprintf(EMAIL_GREET_MR, $firstname);
      } else {
        $email_text = sprintf(EMAIL_GREET_MS, $firstname);

and replace the original definition from your language file you edited earlier.

This should definitely resolve the issue. :thumbsup:

1 Jun 2006, 1:29 AM
#8
polarduality avatar

polarduality

Zen Follower

Join Date:
Mar 2006
Location:
Los Angeles
Posts:
260
Plugin Contributions:
2

Re: Welcome email AHHHHHH

thanks so much!

is there a list of different variables that can be used in e-mails?

$firstname
$lastname
etc
etc

1 Jun 2006, 1:32 AM
#9
polarduality avatar

polarduality

Zen Follower

Join Date:
Mar 2006
Location:
Los Angeles
Posts:
260
Plugin Contributions:
2

Re: Welcome email AHHHHHH

i guess i can just use that module to look up other variables

1 Jun 2006, 1:43 AM
#10
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Welcome email AHHHHHH

i guess i can just use that module to look up other variables

You can also use the create_account.php (def language file) to see all the definition names and use the Developpers tool Kit, under the admin section -> tools menu, to see where these definitions are coming from the source. :wink2:

1 Jun 2006, 2:46 AM
#11
polarduality avatar

polarduality

Zen Follower

Join Date:
Mar 2006
Location:
Los Angeles
Posts:
260
Plugin Contributions:
2

Re: Welcome email AHHHHHH

one more thing,
I commented out the COUPON INCENTIVE HEADER from the language file but it still showed up in the welcome e-mail.

I just thought it would be easier for my client to manage that text through the coupon description itself.

I am using the template override system and i commented it out on my file. I just searched for the default COUPON INCENTIVE HEADER text and the only other file that shows it is /languages/english/create_account.php.

I am guessing I will need to comment that part out in that file as well. Or should I disable it in the module file?

Line #48 : define('EMAIL_COUPON_INCENTIVE_HEADER', 'To make your next visit to our online shop a more rewarding experience, listed below are details for a Discount Coupon created just for you!' . "\n\n");

1 Jun 2006, 2:55 AM
#12
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: Welcome email AHHHHHH

I am guessing I will need to comment that part out in that file as well. Or should I disable it in the module file?

If you wish to disable that line, do not comment it out nor delete it.

Simply change it to read as:

define('EMAIL_COUPON_INCENTIVE_HEADER', ' ');

This should do the trick. :thumbsup:

1 Jun 2006, 3:44 AM
#13
polarduality avatar

polarduality

Zen Follower

Join Date:
Mar 2006
Location:
Los Angeles
Posts:
260
Plugin Contributions:
2

Re: Welcome email AHHHHHH

ah ok. i thought it would leave extra space where the line was supposed to be. thats why i opted to comment it out. hehe

thanks