Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2010
    Posts
    1
    Plugin Contributions
    0

    Default Line breaks in welcome email aren't working

    Hello,

    I am on Zencart V1.3.9a.

    I am editing the "create_account" file with the content for my store's welcome email. All content that I've updated in the "create_account" file displays correctly in the welcome email.

    My problem is that the line breaks in the following don't work.

    // greeting salutation
    define('EMAIL_SUBJECT', 'Welcome to ' . STORE_NAME . ' Online Store');
    define('EMAIL_GREET_MR', "\n" . 'Dear Mr %s,' . "\n\n" );
    define('EMAIL_GREET_MS', "\n" . 'Dear Ms %s,' . "\n\n" );
    define('EMAIL_GREET_NONE', "\n" . 'Dear %s,' . "\n\n" );

    // First line of the greeting
    define('EMAIL_WELCOME', 'Welcome to <strong>' . STORE_NAME . '</strong> online store.' . "\n\n");


    Below is how the text displays in the email. There's only one line break at the end of each line. I would like an extra one so that there's spacing between the "Dear..." and the "Welcome..." and the "You are now registered...".

    Dear Mr Hopko,
    Welcome to The DIY Guys online store.
    You are now registered with our store and have account privileges, which include:


    I've added additional line breaks ("\n\n\n\n"), but no luck!

    Does anyone know why this isn't working?

    Thank you for your time and help!

    Eva

  2. #2
    Join Date
    Aug 2005
    Location
    United Kingdom
    Posts
    457
    Plugin Contributions
    0

    Default Re: Line breaks in welcome email aren't working

    not 100% but the what you are altering is a string value, for the varibale, and will be treated as html, you would have to use <br /> and <br /><br /> if you wanted returns

    however im not sure this is the correct place to do this, as these are variables, these variables will be placed into the welcome email, it may be a better idea to alter this template (welcome template) in the /email/ folder

    Rob

 

 

Similar Threads

  1. v151 No line breaks in Contact Us email customer inputted text
    By Emmo1234 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Jan 2013, 02:42 PM
  2. Getting Rid of Order Confirmation Email Line Breaks
    By kdipaolo in forum General Questions
    Replies: 1
    Last Post: 13 Dec 2011, 05:40 PM
  3. Can I remove the line-breaks in order confirmation email?
    By idc1 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Dec 2011, 03:19 AM
  4. Line Breaks in php - not working.
    By yeah! in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 10 Nov 2010, 09:33 PM
  5. plain email line breaks
    By reap in forum General Questions
    Replies: 1
    Last Post: 4 Oct 2006, 08:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR