Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2009
    Posts
    39
    Plugin Contributions
    0

    Default Not show Model number on packing slip?

    Is there a way to not show the products model number on the packing slips (be fine if it doesn't show on invoice either)? Do I have to remove the model numbers on products all together to do so? I would like to keep the model numbers (though I have them not showing) on the products for search purposes, but not show on the packing slips. Thanks in advance for any help.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Not show Model number on packing slip?

    To turn this off on the Invoice, edit the file:
    /your_admin_name/invoice.php

    you can add the changes in RED:
    Code:
    <!--        <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td> -->
    Code:
    /*      echo '        </td>' . "\n" .
               '        <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n";
    */
          echo '        </td>' . "\n";
    and follow a similar pattern on the packingslip.php ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Not show Model number on packing slip?

    You will have to edit a core file of zen cart to do so.
    There is no override directory for the admin panel ...
    Please keep great notes for future upgrades ...

    root directory/your_admin _name/packingslip.php
    Find this:
    <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr class="dataTableHeadingRow">
    <td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td>
    <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td>
    </tr>
    <?php
    for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
    echo ' <tr class="dataTableRow">' . "\n" .
    ' <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" .
    ' <td class="dataTableContent" valign="top">' . $order->products[$i]['name'];

    if (isset($order->products[$i]['attributes']) && (sizeof($order->products[$i]['attributes']) > 0)) {
    for ($j=0, $k=sizeof($order->products[$i]['attributes']); $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']));
    echo '</i></small></nobr>';
    }
    }

    echo ' </td>' . "\n" .
    ' <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n" .
    ' </tr>' . "\n";
    }
    ?>
    </table></td>
    </tr>
    Change to this:
    <tr>
    <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
    <tr class="dataTableHeadingRow">
    <td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td>
    <td class="dataTableHeadingContent"></td>
    </tr>
    <?php
    for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
    echo ' <tr class="dataTableRow">' . "\n" .
    ' <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" .
    ' <td class="dataTableContent" valign="top">' . $order->products[$i]['name'];

    if (isset($order->products[$i]['attributes']) && (sizeof($order->products[$i]['attributes']) > 0)) {
    for ($j=0, $k=sizeof($order->products[$i]['attributes']); $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']));
    echo '</i></small></nobr>';
    }
    }

    echo ' </td>' . "\n" .
    ' <td class="dataTableContent" valign="top">' . $order->products[$i][''] . '</td>' . "\n" .
    ' </tr>' . "\n";
    }
    ?>
    </table></td>
    </tr>

  4. #4
    Join Date
    Jun 2009
    Posts
    39
    Plugin Contributions
    0

    Default Re: Not show Model number on packing slip?

    Thank you both very much. Especially for the super quick replies.

 

 

Similar Threads

  1. Number of thumbnails on packing slip
    By DML73 in forum General Questions
    Replies: 1
    Last Post: 10 Dec 2013, 01:06 PM
  2. Include Total Number of Items Purchased in Packing Slip
    By maineiac13 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 1 Feb 2011, 05:15 PM
  3. Show shipping weight on invoice or packing slip?
    By raspberryjamcloth in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 21 Dec 2008, 10:24 PM
  4. Order number barcode on packing slip
    By harry2cool in forum General Questions
    Replies: 0
    Last Post: 12 Sep 2008, 08:04 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