Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Line spacing with Send Email to Customer

Line spacing with Send Email to Customer

Views: 761

Results 1 to 6 of 6
26 Oct 2012, 1:59 PM
#1
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

Line spacing with Send Email to Customer

Which template is used when sending email to customer in admin? I would like to introduce a few blank lines before the disclaimers. Now they look like of an extension of the signiture in the actual mail.:huh:

26 Oct 2012, 3:31 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Line spacing with Send Email to Customer

You can add some line breaks to the beginning of the disclaimer text in your admin email_extras.php language file.

26 Oct 2012, 3:39 PM
#3
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

Re: Line spacing with Send Email to Customer

Dear DrByte, is it possible for you to tell me which template is used, or do I have to manually go through the whole set? The question to your answer is "how do I add new empty lines to the disclaimer"! Unfortunately I don't know that either..... It could be "\n" or ...

26 Oct 2012, 3:43 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Line spacing with Send Email to Customer

In my last post I told you: the admin email_extras.php language file.

And yes, "\n" is a line break for text-only emails, and the system will translate that to <br> for HTML emails.

26 Oct 2012, 6:32 PM
#5
kalastaja avatar

kalastaja

Zen Follower

Join Date:
Mar 2010
Location:
Finland
Posts:
465
Plugin Contributions:
0

Re: Line spacing with Send Email to Customer

Nice, except my

define('EMAIL_DISCLAIMER', '\n\n\nVi har mottagit denna e-mail-adress av dig eller någon av våra kunder. Om du tycker att du mottagit detta e-mail i misstag var vänlig och skicka ett e-mail till  %s');

and the email message ending in "KR, John"
ends up in the mail like

...
KR, John
nnnVi har mottagit ...

BTW. Why is the "From" field editable as changing it doesn't seem to have any effect!?

26 Oct 2012, 6:35 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Line spacing with Send Email to Customer

'\n'
is very different from
"\n"

The \n is only treated as a line-break when it's inside double-quotes. Not single-quotes.

So, to add line breaks to the beginning, add "\n" specifically.

ie:
define('CONSTANT_NAME', **"\n\n" . **'the usual text here');