Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2008
    Posts
    22
    Plugin Contributions
    0

    Default Long text does not wrap on invoice or packing list

    I have been using v1.3.8 for several years, and recently came across the need to allow customers to enter rather lengthy text (up to 1000 characters) in an attribute textarea field. I got the long text attribute all working, but discovered that the long text prints on one line on an invoice, so the majority of the text is off the page and not visible.

    I found this closed thread http://www.zen-cart.com/showthread.p...1-No-text-wrap which is quite old, but mentions that a fix for this problem was in the works. I am rebuilding my site using a fresh install of v1.5.3, but I still see the problem.

    Is this fix available, or on the way? I'm thinking I could hack some PHP to do the text wrap for me, but if there's a real fix that would of course be preferable.

    Thanks,
    Lars
    chessieshop.com

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,715
    Plugin Contributions
    13

    Default Re: Long text does not wrap on invoice or packing list

    Don't know about what your template does but, all the <td> in the table do not have nowrap in their call on mine.
    You might try a combination of the things mentioned in http://tinyurl.com/oqo9cud
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Sep 2008
    Posts
    22
    Plugin Contributions
    0

    Default Re: Long text does not wrap on invoice or packing list

    dbltoe,
    Thanks for the reply. That turned out to not be a solution, because I found the problem to be the use of <nobr> tags in invoice.php and packingslip.php, which no amount of css would override, at least in Firefox. I didn't try it in other browsers. I removed the <nobr> and matching </nobr> tags from those two files, and my problem is solved.

    From what I found while researching this problem, the use of <nobr> is somewhat frowned upon (http://www.w3.org/wiki/HTML/Elements/nobr) and I wonder if the Zen-Cart developers would consider removing it? It is used in

    order.php
    paypal.php
    paypalwpp.php
    invoice.php
    orders.php
    packingslip.php

    Lars

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,715
    Plugin Contributions
    13

    Default Re: Long text does not wrap on invoice or packing list

    It is rather interesting that the packingslip.php product listing only uses the <nobr> IF the attributes are >0

    It does a <br> (also incorrectly coded) from the product title, adds a <small> tag, and then starts a <i> for each attribute. This will perform differently in HTML5 vs HTML4 because of the <i>.
    Last edited by dbltoe; 5 Sep 2014 at 12:33 AM.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 

Similar Threads

  1. Add text to end of Invoice and Packing email
    By gprit in forum General Questions
    Replies: 1
    Last Post: 12 Aug 2013, 02:50 PM
  2. orders_status_history not printing completely on packing list ad invoice
    By badarac in forum Managing Customers and Orders
    Replies: 6
    Last Post: 23 Nov 2010, 03:48 AM
  3. How do I change the Invoice and Packing slip text size?
    By gaffettape in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 19 Jun 2010, 09:52 PM
  4. Item number on order, invoice & packing list
    By Tatay in forum Managing Customers and Orders
    Replies: 3
    Last Post: 12 Sep 2008, 06:04 PM
  5. How do i change items in invoice or packing list
    By Rollingstyle in forum Managing Customers and Orders
    Replies: 2
    Last Post: 13 Jul 2007, 03:54 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