Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,475
    Plugin Contributions
    11

    Default Placing Product Image on Packing Slip 1.5.6c

    We have had the product image displayed on the packing slip for some time now. With the upgrade to 1.5.6c, the packing slip has gone through some PHP and layout revision.

    In order to accomplish this in YOUR_ADMIN/packingslip.php on 1.5.6c find
    Code:
    <thead><tr class="dataTableHeadingRow">
                <th class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
                <th class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></th>
              </tr>
            </thead>
            <tbody>
                <?php
                for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
                  ?>
                <tr class="dataTableRow">
                  <td class="dataTableContent text-right"><?php echo $order->products[$i]['qty']; ?>&nbsp;x</td>
    and replace with
    Code:
            <thead>
    <tr class="dataTableHeadingRow">
                <th class="dataTableHeadingContent">Image</th>
                <th class="dataTableHeadingContent">Quantity</th>
                <th class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
                <th class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></th>
              </tr>
            </thead>
            <tbody>
                <?php
                for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
                  ?>
                <tr class="dataTableRow">
                  <td class="dataTableContent"><?php echo '<img src="' . DIR_WS_CATALOG . DIR_WS_IMAGES . zen_get_products_image($order->products[$i]['id']) .'" align="left" width="' . IMAGE_ON_INVOICE_IMAGE_WIDTH . '" height="' . IMAGE_ON_INVOICE_IMAGE_HEIGHT . '">'; ?></td>
                  <td class="dataTableContent"><?php echo $order->products[$i]['qty']; ?>&nbsp;x</td>
    Actual changes are highlighted in red.
    There's a good chance this will adapt to other pages but we have not tried on other than the packing slip.
    Last edited by dbltoe; 20 Nov 2019 at 07:10 AM.

 

 

Similar Threads

  1. How to add image in packing slip?
    By teflonchest in forum Managing Customers and Orders
    Replies: 1
    Last Post: 3 May 2010, 04:09 PM
  2. Truncate Product Name in Packing Slip
    By maineiac13 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Jun 2009, 03:09 PM
  3. Packing Slip Have product totals and shipping
    By Best Price Accessori in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Apr 2009, 05:27 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR