Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Dec 2006
    Location
    Ohio
    Posts
    16
    Plugin Contributions
    0

    Default Re: Admin: Invoice.php and text attributes length

    Has anyone discovered a solution or am I posting in the wrong place?

    -Shawn

    -Edit-
    p.s. I meant data not date above.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Admin: Invoice.php and text attributes length

    If you don't like the non-wrapping, edit your /admin/invoice.php file, and find this section (around line 174):
    Code:
          if (isset($order->products[$i]['attributes']) && (($k = sizeof($order->products[$i]['attributes'])) > 0)) {
            for ($j = 0; $j < $k; $j++) {
              echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value']));
              if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
              if ($order->products[$i]['attributes'][$j]['product_attribute_is_free'] == '1' and $order->products[$i]['product_is_free'] == '1') echo TEXT_INFO_ATTRIBUTE_FREE;
              echo '</i></small></nobr>';
            }
          }
    ... and remove the <nobr> and </nobr> tags.
    .

    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
    Dec 2006
    Location
    Ohio
    Posts
    16
    Plugin Contributions
    0

    Default Re: Admin: Invoice.php and text attributes length

    Oh.... Why didn't I see that before? Thank you, that did the trick.

 

 

Similar Threads

  1. How to make text box attribute required and maximum length?
    By dgeere in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 20 Mar 2010, 11:10 AM
  2. Replies: 1
    Last Post: 9 Sep 2009, 12:11 PM
  3. Replies: 1
    Last Post: 24 Aug 2009, 07:53 PM
  4. Looking to add print invoice and shipp invoice from admin---> orders
    By r4fdud in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 15 Mar 2009, 11:21 PM
  5. Product Attributes Length and Drop
    By zelnix in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 18 May 2006, 01:48 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