Zen Cart Logo
Forums / General Questions / Create account welcome email

Create account welcome email

Locked

Views: 2,872

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
13 Jul 2008, 10:33 AM
#1
bluegrape avatar

bluegrape

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Create account welcome email

I have been trying to add some instructions to my welcome email.

The file I am editing is includes/languages/english/my template/create_account.php

Everytime I make a change and upload the file, the create account page on my site is blank, broken.

The current welcome email does not show any line breaks, everything just runs on and on. I don't know php but I think I have worked out that . "\n\n" . should mean a new line. The code is there but it's not making new lines.

I did not write any of the code, it came from the default welcome email. If I looke at a preview of the welcome email in Admin, the line breaks are there but they are not there when I get a copy of the welcome email.

I know when I edit the create_account.php file I must be making an error somewhere for the page to go blank but I can't find the error.

Can anybody please help me?

13 Jul 2008, 2:04 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: Create account welcome email

Please post the text you are trying to insert.

13 Jul 2008, 2:14 PM
#3
bluegrape avatar

bluegrape

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Re: Create account welcome email

Kim:

Please post the text you are trying to insert.

It just simply instructions on how to use their accouts because I am constantly getting emails asking me how to find the files they have paid for.

The text and code I using is below;

'<strong>Using your Account</strong> - If you do not download your order as soon as the transaction was completed, you can download it from your account by following the instructions below.' . "\n\n" . '<li><strong>Step One</strong> - Login to the web site.' . "\n\n" . '<li><strong>Step Two</strong> - Click on the My Account Link.' . "\n\n" . '<li><strong>Step Three</strong> - On this page you will see a list of your previous orders. Your latest order will be at the top of this list. Click the View button.' . "\n\n" . '<li><strong>Step Four</strong> - On this page you will see a Download button.' . "\n\n" . '<li><strong>Lost Password</strong> - If you forget your password click on the link Forgot your password? If you haven't already entered your email address, please do so. A new password will be sent to the email address you have on record. After the new password has been sent to you, you can login to your account and change the new password to one you would prefer to use.' . "\n\n" .
'Please keep this email for future reference.' . "\n\n");

13 Jul 2008, 2:23 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,611
Plugin Contributions:
0

Re: Create account welcome email

Cardinal rule in using php defines - any apostrophes must be escaped.

Find the word haven't (and anything else that is contracted) and put a backslash in front of the apostrophe. - haven't

13 Jul 2008, 3:00 PM
#5
bluegrape avatar

bluegrape

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Re: Create account welcome email

Kim:

Cardinal rule in using php defines - any apostrophes must be escaped.

Find the word haven't (and anything else that is contracted) and put a backslash in front of the apostrophe. - haven't

That fixed it for me. Thank you very much!

13 Jul 2008, 3:11 PM
#6
bluegrape avatar

bluegrape

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Re: Create account welcome email

I just created a fake new account. The text I wanted is now in the welcome email but there are no line breaks or spaces where paragraphs should be. My welcome email displays like I have it below.

Dear Dee

I wish to welcome you to....

With your account, you can now take part in the various services I have to offer you. Some of these services include: Permanent Cart - Any products added to your online cart remain there until you remove them, or check them out. Order History - View your history of purchases that you have made with me. Products Reviews - Share your opinions on the charts you have stitched with other customers. By writing a review of any chart you have stitched, you not only assist other customers, it helps me by letting me know if you are happy with your stitched work. Using your Account - If you do not download your order as soon as the transaction was completed, you can download it from your account by following the instructions below. Step One - Login to the web site. Step Two - Click on the My Account Link. Step Three - On this page you will see a list of your previous orders. Your latest order will be at the top of this list. Click the View button. Step Four - On this page you will see a Download button. Lost Password - If you forget your password click on the link Forgot your password? If you haven't already entered your email address, please do so. A new password will be sent to the email address you have on record. After the new password has been sent to you, you can login to your account and change the new password to one you would prefer to use. Please keep this email for future reference.

If you need help or have questions, please email me

I don't understand why my paragraphs breaks are not working.

13 Jul 2008, 7:04 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: Create account welcome email

If you're attempting to style this as an HTML email, why don't you use <br /> tags instead of carriage returns?

14 Jul 2008, 3:27 AM
#8
bluegrape avatar

bluegrape

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Re: Create account welcome email

DrByte:

If you're attempting to style this as an HTML email, why don't you use <br /> tags instead of carriage returns?

I have tried using <br /> and also <p></p> when I use either I get a blank page again.

I'll keep trying.

14 Jul 2008, 4:21 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: Create account welcome email

A blank page suggests a PHP error, akin to what Kim had mentioned earlier.

14 Jul 2008, 5:26 AM
#10
bluegrape avatar

bluegrape

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Re: Create account welcome email

DrByte:

A blank page suggests a PHP error, akin to what Kim had mentioned earlier.

I got it to work. I didn't realise the <br /> had to go aft the ' and not before it.

Thank you all for your help it is appreciated!