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']; ?> 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']; ?> 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.
Bookmarks