Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Oct 2005
    Posts
    42
    Plugin Contributions
    0

    Default Order Confirmation - how do I add line breaks between attributes?

    Hi Zenners

    My Product details in Email Confirmations are all on one line there seems to be a </br> missing after each line (ver 1.3.0.1), i.e.
    1 x Product one
    Download 1 Download 2 Download 3

    Instead of
    1 x Product one
    Download 1
    Download 2
    Download 3

    which file to I change to put the break back in.

    Thanks

  2. #2
    Join Date
    Oct 2005
    Posts
    42
    Plugin Contributions
    0

    Default Re: Order Confirmation how to fix

    Please can someone help, I just need to know where the file is
    !

  3. #3
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Order Confirmation how to fix

    What is wrong with your order confirmation? The file is tpl_checkout_confirmation.php

  4. #4
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Order Confirmation how to fix


    tpl_checkout_confirmation.php file.
    tpl_checkout_confirmation_default.php file.

  5. #5
    Join Date
    Oct 2005
    Posts
    42
    Plugin Contributions
    0

    Default Re: Order Confirmation how to fix

    Thank you for the replies!

    Here is the text (is this what you meant)
    <div class="content-line"><strong>Products</strong></div>
    <div class="order-detail-area"><table class="product-details" border="0" width="100%" cellspacing="0" cellpadding="2"><tr><td class="product-details" align="right" valign="top" width="30">1&nbsp;x</td><td class="product-details" valign="top">Spring into Summer (SDKJUNE06) <nobr><small><em>
    Download 1 Win Zip Format
    Download 2 Win Zip Format
    Download 3 Win Zip Format
    Download 4 Win Zip Format</em></small></nobr></td><td class="product-details-num" valign="top" align="right">$0.00</td></tr></table></div>

    When I look at text from an old confirmation (ver 1.2.7) there is a </br> after each attribute!

    The coding has changed slightly in ver 1.3.0.1 tpl_checkout_confirmation_default.php - line 131 (I am guessing this is the code to change) but where to put the </br>.

    Your help is much appreciated I know this is a small issue !

  6. #6
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Order Confirmation how to fix

    I have to admit, it wasn't an obvious place to find it. Even I would of had a hard time if you haven't posted these codes above.

    In your includes/classes/order.php file,

    find:


    '<nobr><small><em> '. $this->products_ordered_attributes .'</em></small></nobr></td>' .
    replace with:


    '<br /><small><em> '. $this->products_ordered_attributes .'</em></small><br /></td>' .
    Which is, I believe, what you were looking for to do.

  7. #7
    Join Date
    Oct 2005
    Posts
    42
    Plugin Contributions
    0

    Default Re: Order Confirmation how to fix

    Thank you so much, now the order confirmations are all nice and neat!

    There is no way I would have ever looked for that code to change!

    Your time and trouble is very much appreciated, many, many thanks!


  8. #8
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: Order Confirmation how to fix

    Outstanding. Thanks for updating.

  9. #9
    Join Date
    Jan 2006
    Posts
    38
    Plugin Contributions
    0

    Default Re: Order Confirmation how to fix

    Pants... its not working for me.

    I have:

    </td>' .
    '<td class="product-details" valign="top">' . $this->products[$i]['name'] . ($this->products[$i]['model'] != '' ? ' (' . $this->products[$i]['model'] . ') ' : '') .
    '<br /><small><em> '. $this->products_ordered_attributes .'</em></small><br /></td>' .
    '<td class="product-details-num" valign="top" align="right">' .
    $currencies->display_price($this->products[$i]['final_price'], $this->products[$i]['tax'], $this->products[$i]['qty']) .
    ($this->products[$i]['onetime_charges'] !=0 ?
    '</td></tr><tr><td class="product-details">' . TEXT_ONETIME_CHARGES_EMAIL . '</td>' .

    and I'm still having no joy.

    Any ideas?

  10. #10
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: Order Confirmation how to fix

    It seems that only the HTML format of Order Confirmation show no line break.
    And the one with Text format don't have this problem.

    Had tried to add a <br /> to the file below and in the test the attruibute line show with line break.

    the file to modifiy is:
    includes/classes/order.php

    NOTE:
    This is the classes file and no override.
    Don't forget to backup your files before and after any modifications.
    You are at your own risk, anything wrong will cause troubles to your system.


    For v1.3.5, at about line no. 829
    For v1.3.0.2, at about line no. 806

    Find the following line

    PHP Code:
    $this->products_ordered_attributes .= "\n\t" $attributes_values->fields['products_options_name'] . ' ' zen_decode_specialchars($this->products[$i]['attributes'][$j]['value']); 
    at the end of the line, before the ; add the follow:
    Code:
     . '<br />'
    Note: there is a leading space in the beginning

    And read as follow:
    PHP Code:
    $this->products_ordered_attributes .= "\n\t" $attributes_values->fields['products_options_name'] . ' ' zen_decode_specialchars($this->products[$i]['attributes'][$j]['value']) . '<br />'
    A New Starter again

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Getting Rid of Order Confirmation Email Line Breaks
    By kdipaolo in forum General Questions
    Replies: 1
    Last Post: 13 Dec 2011, 05:40 PM
  2. 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
  3. Add a line to the order confirmation emails.
    By MoonCow in forum General Questions
    Replies: 4
    Last Post: 15 Jul 2009, 02:04 PM
  4. How do I add Dotted line/ space in between product listing
    By Dupermall in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 16 Jun 2008, 04:11 PM
  5. Want to add a line between Attributes
    By gabstero in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 12 Feb 2008, 08:44 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