Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Sep 2012
    Posts
    253
    Plugin Contributions
    0

    Default Re: Special Instructions or Order Comments

    Would putting something such as this in the css work? If so where would I insert it?

    Code:
    div {
      width: 50px;
      word-wrap: break-word;
      display: table-cell;
    }

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Special Instructions or Order Comments

    I just checked the admin order page, and it has attribute elements contained in <nobr> elements, which is a deprecated (obsolete?) tag that forbids its content from breaking to a new line. I haven't found a CSS way to overcome that yet. It may need to be altered in the PHP file (and should be, for the future).
    I haven't investigated order comments or e-mails yet.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Special Instructions or Order Comments

    I edited /admin/orders.php and replaced <nobr> and </nobr> with <span class="nobr"> and </span> in three places, lines 565, 568 and 977.
    Now orders with long text attribute strings wrap to fit the space available, and apparently preserve line breaks entered in the text. I have seen no errors at this point.

    I would suggest investigating the appropriate files for other instances of the no-wrap behavior per the OP to see if they can be treated similarly.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Special Instructions or Order Comments

    A search in the Developers Toolkit shows "nobr" in /admin/invoice.php (lines 170 & 173), /admin/packingslip.php (lines 154 & 155) and /includes/classes/order.php (line 876), as well as paypal files which I don't want to touch unless experience shows a need to.

    /includes/classes/order.php is responsible for sending the order confirmation e-mail, so that would probably be the target file for the OP concern.

  5. #5
    Join Date
    Sep 2012
    Posts
    253
    Plugin Contributions
    0

    Default Re: Special Instructions or Order Comments

    I found the answer to this. In email/email_template_checkout.html

    I changed
    Code:
    body {color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center}
    to
    Code:
    body {color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center; width: 40px}
    This fixed the html email to have word wrap on the email receipt unless they write an essay without spaces.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Special Instructions or Order Comments

    40px is an unreasonably narrow width - about equal to 5 or 6 letters wide depending on font size. 40em would be around 40 to 60 characters wide depending on the characters and the font.

 

 

Similar Threads

  1. Special Instructions or Order Comments
    By Randa in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Oct 2009, 03:57 PM
  2. Special Instructions or Order Comments
    By kminnich in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 22 Oct 2008, 05:48 AM
  3. Special Instructions/Order Comments Error
    By kenaniah in forum General Questions
    Replies: 4
    Last Post: 12 Dec 2006, 06:19 AM
  4. Special Instructions or Comments About Your Order
    By vinnieb in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Sep 2006, 05:01 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