Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2007
    Location
    UK
    Posts
    59
    Plugin Contributions
    0

    Default HTML Confirmation Email Width

    I am using zc 1.37 and have recently changed over to using HTML emails.

    This works fine, but I have noticed a curious problem if the order contains an item that has a text box, and the customer inputs a lot of text. Everything is there, but the text is displayed in a single line, which pushes out the width of the email at that point (and only that point). This makes it look odd, with it out past the logo, and the item price out of vertical alignment.

    Is there a way of making this wrap onto additional lines like it does in the shopping basket?

    Thanks

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: HTML Confirmation Email Width

    You'll have to take out the <nobr> and </nobr> in this line of /includes/classes/order.php:
    Code:
          '<nobr><small><em> '. nl2br($this->products_ordered_attributes) .'</em></small></nobr></td>' . "\n" .
    .

    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
    Jan 2007
    Location
    UK
    Posts
    59
    Plugin Contributions
    0

    Default Re: HTML Confirmation Email Width

    Thank you DrByte, that works perfectly.

  4. #4
    Join Date
    Aug 2009
    Location
    Arizona, US, Dry Hot Desert
    Posts
    15
    Plugin Contributions
    0

    Default Re: HTML Confirmation Email Width

    Quote Originally Posted by DrByte View Post
    You'll have to take out the <nobr> and </nobr> in this line of /includes/classes/order.php:
    Code:
          '<nobr><small><em> '. nl2br($this->products_ordered_attributes) .'</em></small></nobr></td>' . "\n" .
    Sorry for responding to this old thread, but need to know if the /includes/classes/order.php file can be added to the override system, or must I make the change in the core file??

    On another note, to DrByte: Thanks for all the great support you provide to this forum. Your answers are always SO on the mark!

    Signed,
    A Big Fan.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: HTML Confirmation Email Width

    The files in /includes/classes must be edited directly. No override support there.
    .

    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.

  6. #6
    Join Date
    Aug 2009
    Location
    Arizona, US, Dry Hot Desert
    Posts
    15
    Plugin Contributions
    0

    Default Re: HTML Confirmation Email Width

    OK, thanks. Too bad, though...I SO hate comparing files on upgrades.

 

 

Similar Threads

  1. v151 How to make a custom HTML create account confirmation email
    By abdulpatesh in forum General Questions
    Replies: 1
    Last Post: 1 Dec 2015, 07:06 PM
  2. Questions about HTML order confirmation email
    By haykgrigory in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 17 Dec 2013, 07:08 PM
  3. non-english customized HTML email order confirmation
    By Kcm75 in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 18 Oct 2012, 12:44 PM
  4. Replies: 0
    Last Post: 4 Sep 2008, 02:04 PM
  5. HTML order confirmation email
    By yonghs in forum Managing Customers and Orders
    Replies: 1
    Last Post: 15 Aug 2008, 12: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