Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: Order Confirmation how to fix

    Update!

    Sorry, found that the first attribute is not wrapped, and only follow after the product name.

    Please change the above code as follow.
    PHP Code:
    $this->products_ordered_attributes .= "\n\t" '<br />' $attributes_values->fields['products_options_name'] . ' ' zen_decode_specialchars($this->products[$i]['attributes'][$j]['value']); 
    The only change is put the <br /> to the begin of each attribute line and not the end.
    A New Starter again

  2. #12
    Join Date
    Oct 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Order Confirmation how to fix

    Hi everyone,

    I have a problem that I have tracked down to this section of code.

    I am using the Japanese version, in the email confirmation only the attributes appear as Unicode values. All other Japanese text is fine.

    i was hoping someone might know why the attributes would be handled differently.. could it be this code?



    //clr 030714 changing to use values from $orders->products and adding call to zen_decode_specialchars()
    // $this->products_ordered_attributes .= "\n\t" . $attributes_values->fields['products_options_name'] . ' ' . $attributes_values->fields['products_options_values_name'];
    $this->products_ordered_attributes .= "\n\t" . $attributes_values->fields['products_options_name'] . ' ' . zen_decode_specialchars($this->products[$i]['attributes'][$j]['value']);

  3. #13
    Join Date
    Oct 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Order Confirmation how to fix

    Anybody?

    I've been trying to fix this for hours, it seems that
    $this->products_ordered_attributes

    is the only thing that is not encoded properly, anybody know how I can force this to appear correctly in the email?

  4. #14
    Join Date
    Oct 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Order Confirmation how to fix

    Finally, I got it. On line 870 in orders.php. Added:

    $str1 = mb_convert_encoding( $this->products_ordered_attributes, "EUC-JP", "HTML-ENTITIES" );

    Then on line 885, substituted: $str1

    for:

    $this->products_ordered_attributes

 

 
Page 2 of 2 FirstFirst 12

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