Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2007
    Posts
    24
    Plugin Contributions
    0

    Default Formatting in custome receipt text

    Hi there - I'm adding a custom header to the Order Confirmation email customers receive to replace the generic "thanks for shopping with us" message, but I'm having trouble with the formatting.

    In includes/languages/english/checkout_process.php, I've tried to use <br> tags to separate lines (and put a space between the greeting header and the "details of your order" line), but they're being ignored.

    Here's the code:

    define('EMAIL_THANKS_FOR_SHOPPING','This confirms your Sacred Fools Online Box Office transaction. For show tickets, be sure to arrive on time as late seating cannot be guaranteed.<br><br>Sacred Fools Theater<br>660 N. Heliotrope Ave<br>(S. of Melrose, between Normandie & Vermont)<br><br>Limited parking available next to the theater. Note parking restrictions.<br><br>Questions/concerns (310) 281-8337 or see our website at www.SacredFools.org<br>');
    define('EMAIL_DETAILS_FOLLOW','The following are the details of your order.');


    I want it to look like this in the receipt:

    This confirms your Sacred Fools Online Box Office transaction. For show tickets, be sure to arrive on time as late seating cannot be guaranteed.

    Sacred Fools Theater
    660 N. Heliotrope Ave
    (S. of Melrose, between Normandie & Vermont)

    Limited parking available next to the theater. Note parking restrictions.

    Questions/concerns (310) 281-8337 or see our website at www.SacredFools.org

    The following are the details of your order.


    Instead, it looks like this:

    This confirms your Sacred Fools Online Box Office transaction. For show
    tickets, be sure to arrive on time as late seating cannot be
    guaranteed.Sacred Fools Theater660 N. Heliotrope Ave(S. of Melrose, between
    Normandie & Vermont)Limited parking available next to the theater. Note
    parking restrictions.Questions/concerns (310) 281-8337 or see our website at
    www.SacredFools.org
    The following are the details of your order.


    Any help appreciated. Thanks!

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

    Default Re: Formatting in custome receipt text

    You need to use
    Code:
    ' . "\n" . '
    instead of
    Code:
    <br>
    Note the specific quotation marks used.
    .

    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.

  3. #3
    Join Date
    Aug 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: Formatting in custome receipt text

    Quote Originally Posted by DrByte View Post
    You need to use
    Code:
    ' . "\n" . '
    instead of
    Code:
    <br>
    Note the specific quotation marks used.
    Awesome, thanks for helping a PHP newbie.

    So the below code would be correct? (Single-quotes placed next to each other marked in red for ease of distinguishing from actual double-quotes...)

    define('EMAIL_THANKS_FOR_SHOPPING','This confirms your Sacred Fools Online Box Office transaction. For show tickets, be sure to arrive on time as late seating cannot be guaranteed.' . "\n" . '' . "\n" . 'Sacred Fools Theater' . "\n" . '660 N. Heliotrope Ave' . "\n" . '(S. of Melrose, between Normandie & Vermont)' . "\n" . '' . "\n" . 'Limited parking available next to the theater. Note parking restrictions.' . "\n" . '' . "\n" . 'Questions/concerns (310) 281-8337 or see our website at www.SacredFools.org' . "\n" . '');

    Thanks again!
    Last edited by CKlemow; 3 Sep 2007 at 11:42 PM.

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

    Default Re: Formatting in custome receipt text

    That's the concept.

    How's it working for you ?
    .

    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.

 

 

Similar Threads

  1. I applied a custome template, how do I add text to the homepage of my store?
    By sunchips in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 May 2013, 10:23 AM
  2. v139h Help: change Text on Receipt?
    By kizmark in forum General Questions
    Replies: 2
    Last Post: 15 Jun 2012, 03:58 PM
  3. Referencing Product Name in Custome Text
    By abcdhello in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Jun 2012, 02:27 AM

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