Zen Cart Logo
Forums / PayPal Express Checkout support / [Done 1.4.0] Paypal Express Checkout welcome email question

[Done 1.4.0] Paypal Express Checkout welcome email question

Locked

Views: 2,583

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
7 Sep 2008, 7:39 PM
#1
shawnz28 avatar

shawnz28

New Zenner

Join Date:
Apr 2005
Posts:
75
Plugin Contributions:
0

[Done 1.4.0] Paypal Express Checkout welcome email question

I need some assistance locating the files used for the paypal emails. When I create an account using Express Checkout. There are a few things I would like to change in the paypal version to make it looks more like the standard welcome email I created. The paypal email is in text format and not html like the standard welcome email, not sure if this is by design or if there is a setting I am missing. As well as the customers name just includes the first name, missing a line break after "we wish to welcome you", no logo of course since text format.

thanks for any help pointing me to them, I searched the forums and did not find my answer

8 Sep 2008, 4:50 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: [Done 1.4.0] Paypal Express Checkout welcome email question

There is a text-search capability in the Developers Toolkit in your admin area:
https://www.zen-cart.com/tutorials/index.php?article=38
https://www.zen-cart.com/tutorials/index.php?article=39

The welcome emails that are sent from your store use the same files, regardless of whether the email is generated by the customer creating their own account or by their use of Express Checkout.

8 Sep 2008, 5:14 AM
#3
shawnz28 avatar

shawnz28

New Zenner

Join Date:
Apr 2005
Posts:
75
Plugin Contributions:
0

Re: [Done 1.4.0] Paypal Express Checkout welcome email question

Thanks Dr. I admit I didnt even think to use the toolkit, sometimes when frustrated I forget to look at the simpliest thing

I will have to relook at the create welcome email file and see if there is something in the code that makes the non-html version skip that line break that the html version does have as that would be the only thing I can think of. And am gussing the customer name format change is due to the way paypal hands over the name vs. the way the cart creates the account when not using paypal.

Curious though, if I have the setting in the store config to use html email why would the paypal welcome not be in html? ... am I missing something?

8 Sep 2008, 5:18 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: [Done 1.4.0] Paypal Express Checkout welcome email question

I believe the default setting of the store is to use text format, not html (ie: whatever the radio button default is when creating a new account), and that is the format that will be set on the account and therefore what will be used by the welcome email.

8 Sep 2008, 5:39 AM
#5
shawnz28 avatar

shawnz28

New Zenner

Join Date:
Apr 2005
Posts:
75
Plugin Contributions:
0

Re: [Done 1.4.0] Paypal Express Checkout welcome email question

Ah that makes sense. I assume there is no way to change that? To match up to the setting that have it at? I dont know is this makes any difference but the "default" or at least default here is html
https://saltycritter.com/store/index.php?main_page=login

Then again more I think about it maybe should just have all the emails to text and not try to be fancy, probably "safer" and less chance of getting blocked/filtered I am guessing.

thanks again

8 Sep 2008, 6:13 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: [Done 1.4.0] Paypal Express Checkout welcome email question

shawnz28:

maybe should just have all the emails to text and not try to be fancy, probably "safer" and less chance of getting blocked/filtered I am guessing.
That is one of the reasons why text is the default method on a new store.

13 Sep 2008, 5:54 AM
#7
shawnz28 avatar

shawnz28

New Zenner

Join Date:
Apr 2005
Posts:
75
Plugin Contributions:
0

Re: [Done 1.4.0] Paypal Express Checkout welcome email question

Looking at the code I see where the name gets pushed to first name in the welcome if not Mr/Ms is chosen. But I have looked at this and still have not figured it out. I have everything set to text and still missing a line break in the paypal version of the welcome mail between the $EMAIL_WELCOME and the $EMAIL_MESSAGE_HTML.

Here is the opening of a standardly created account

Dear Mr. koerner,

We wish to welcome you to Salty Critter.

With your account, you can now take part in the various services we have to
offer you. Some of these services include:

Newsletters - We may periodically send out newletters containing updates of

Here is a paypal created one beginning

Dear Dan

We wish to welcome you to Salty Critter.With your account, you can now take
part in the various services we have to offer you. Some of these services
include:

Newsletters - We may periodically send out newletters containing updates of

13 Sep 2008, 6:59 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: [Done 1.4.0] Paypal Express Checkout welcome email question

What version of Zen Cart?

In 1.3.8a, you could try changing this (around line 2124):// set the mail text $email_text = sprintf(EMAIL_GREET_NONE, $paypal_ec_payer_info['payer_firstname']) . EMAIL_WELCOME . EMAIL_TEXT;to this:```
// set the mail text
$email_text = sprintf(EMAIL_GREET_NONE, $paypal_ec_payer_info['payer_firstname']) . EMAIL_WELCOME[B] . "\n\n" .[/B] EMAIL_TEXT;

13 Sep 2008, 3:47 PM
#9
shawnz28 avatar

shawnz28

New Zenner

Join Date:
Apr 2005
Posts:
75
Plugin Contributions:
0

Re: [Done 1.4.0] Paypal Express Checkout welcome email question

Yes it is 1.3.8a, that fixed it, thanks!