Results 1 to 10 of 16

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    135
    Plugin Contributions
    0

    Default Help With Line Breaks

    I'm having trouble adding line breaks to the create_account file.

    Can someone please tell me what I'm doing wrong?

    I'm adding "\n\n and I've tried \n but nothing seems to work:

    This is the code:

    <?php
    /**
    * @package languageDefines
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: create_account.php 5745 2007-02-01 00:52:06Z ajeh $
    */

    define('NAVBAR_TITLE', 'Create an Account');

    define('HEADING_TITLE', 'My Account Information');

    define('TEXT_ORIGIN_LOGIN', '<strong class="note">NOTE:</strong> If you already have an account with us, please login at the <a href="%s">login page</a>.');

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

    // First line of the greeting
    define('EMAIL_WELCOME', 'We wish to welcome you to <strong>' . STORE_NAME . '</strong>.');
    define('EMAIL_SEPARATOR', '--------------------');
    define('EMAIL_COUPON_INCENTIVE_HEADER', 'Congratulations! 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");
    // your Discount Coupon Description will be inserted before this next define
    define('EMAIL_COUPON_REDEEM', 'To use the Discount Coupon, enter the ' . TEXT_GV_REDEEM . ' code during checkout: <strong>%s</strong>' . "\n\n");
    define('TEXT_COUPON_HELP_DATE', '<p>The coupon is valid between %s and %s</p>');

    define('EMAIL_GV_INCENTIVE_HEADER', 'Just for stopping by today, we have sent you a ' . TEXT_GV_NAME . ' for %s!' . "\n");
    define('EMAIL_GV_REDEEM', 'The ' . TEXT_GV_NAME . ' ' . TEXT_GV_REDEEM . ' is: %s ' . "\n\n" . 'You can enter the ' . TEXT_GV_REDEEM . ' during Checkout, after making your selections in the store. ');
    define('EMAIL_GV_LINK', ' Or, you may redeem it now by following this link: ' . "\n");
    // GV link will automatically be included before this line

    define('EMAIL_GV_LINK_OTHER','Once you have added the ' . TEXT_GV_NAME . ' to your account, you may use the ' . TEXT_GV_NAME . ' for yourself, or send it to a friend!' . "\n\n");

    define('EMAIL_TEXT', 'With your account, you can now take part in the <strong>many services</strong> we have to offer you. Some of these services include:' . "\n\n" .
    '<li><strong>Promotions and Discounts</strong> - Members subscribed to our newsletter will receive monthly specials and discounts they may use during checkout on selected items.' . "\n\n" .
    '<li><strong>Permanent Cart</strong> - Any products added to your online cart remain there until you remove them, or check them out.' . "\n\n" . '<li><strong>Address Book</strong> - We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.' . "\n\n" . "\n" . '<li><strong>Order History</strong> - View your history of purchases that you have made with us.' . "\n\n" . '<li><strong>Products Reviews</strong> - Share your opinions on products with our other customers, and by doing so be <strong>eligible to recieve a coupon towards your next order</strong>!' . "\n\n" . "\n\n" . '<li><strong>Refer Family and Friends</strong> - Enjoy even more savings for every new visitor referred to us by you!' . "\n\n");

    define('EMAIL_CONTACT', 'Thank you again for choosing. If there is anything we can do to make your online shopping faster and more convenient, please let us know. We will be glad to hear from you! Please email <a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">'. STORE_OWNER_EMAIL_ADDRESS ." </a> or call us at 1-800-761-7936.\n\n" . "\n\n");

    define('EMAIL_GV_CLOSURE','Sincerely,' . "\n\n" . "\n\n\n". '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'.HTTP_SERVER . DIR_WS_CATALOG ."</a>\n\n");

    // email disclaimer - this disclaimer is separate from all other email disclaimers
    define('EMAIL_DISCLAIMER_NEW_CUSTOMER', 'This email address was given to us by you or by one of our customers. If you did not signup for an account, or feel that you have received this email in error, please send an email to %s ');

    //moved definitions to english.php
    //define('TABLE_HEADING_PRIVACY_CONDITIONS', 'Privacy Statement');
    //define('TEXT_PRIVACY_CONDITIONS_DESCRIPTION', 'Please acknowledge you agree with our privacy statement by ticking the following box. The privacy statement can be read <a href="' . zen_href_link(FILENAME_PRIVACY, '', 'SSL') . '"><span class="pseudolink">here</span></a>.');
    //define('TEXT_PRIVACY_CONDITIONS_CONFIRM', 'I have read and agreed to your privacy statement.');
    //define('TABLE_HEADING_ADDRESS_DETAILS', 'Address Details');
    //define('TABLE_HEADING_PHONE_FAX_DETAILS', 'Additional Contact Details');
    //define('TABLE_HEADING_DATE_OF_BIRTH', 'Verify Your Age');
    //define('TABLE_HEADING_LOGIN_DETAILS', 'Login Details');
    //define('TABLE_HEADING_REFERRAL_DETAILS', 'Were You Referred to Us?');
    ?>

    I'm trying to add a line break after where it says "Sincerely". Also, the line breaks don't show up right on certain email clients. Is there any code you can use that will work for everything??

    Thank you.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Help With Line Breaks

    I changed the line to:
    define('EMAIL_GV_CLOSURE','Sincerely,' . "\n\n\n\n\n\n\n\n" . STORE_OWNER . "\nStore Owner\n\n". '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'.HTTP_SERVER . DIR_WS_CATALOG ."</a>\n\n");
    and I have a ton of space between Sincerely and the store owner in both HTML and TEXT format ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Aug 2008
    Posts
    135
    Plugin Contributions
    0

    Default Re: Help With Line Breaks

    Yup I get that too whenever I put the code.

    Do you know how to add a line break or two before "sincerely". No matter how many \n\n\n\n I put, it won't create a line break???? And also after the bullet items.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Help With Line Breaks

    Do you get *any* line-breaks at all?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Help With Line Breaks

    I change it to this and get tons of space before and after Sincerely in both HTML and TEXT emails ...
    Code:
    define('EMAIL_GV_CLOSURE',"\n\n\n\n\n\n\n\n" . 'Sincerely,' . "\n\n\n\n\n\n\n\n" . STORE_OWNER . "\nStore Owner\n\n". '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'.HTTP_SERVER . DIR_WS_CATALOG ."</a>\n\n");
    Do a search on the word:
    sincerely

    in the Tools ... Developers Tool Kit ...

    How many files are on your server?

    Are you editing the right one?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Aug 2008
    Posts
    135
    Plugin Contributions
    0

    Default Re: Help With Line Breaks

    Dr. Byte, I am not getting any at all.

    Okay, I will do a search in the Developers Tool Kit and post back.

 

 

Similar Threads

  1. Replies: 6
    Last Post: 18 Apr 2015, 12:03 AM
  2. Line Breaks ??
    By evil turinp in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 Feb 2010, 12:07 PM
  3. Help Remove line breaks! <br> tags
    By KThompson in forum General Questions
    Replies: 3
    Last Post: 24 Aug 2008, 03:13 PM
  4. Replies: 3
    Last Post: 30 Dec 2007, 02:43 PM

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