Many thanks to all members who contributed.
Below are the code I inserted into public_html/store/your-admin-folder/packingslip.php. The images will be on last column. Only " added by mwang" part is the new code. Others are original. I included them because I tried several time to insert to different places and this one works.
Here is the packing list print preview screen shot.
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'] . ' 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> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . nl2br($order->products[$i]['attributes'][$j]['value']);
echo '</i></small></nobr>';
}
}
echo ' </td>' . "\n" .
' <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n" .
// | added by mwang to show thumbnail image in invoice |
' <td class="dataTableContent" align="center" valign="top">' .zen_image(DIR_WS_CATALOG_IMAGES . zen_get_products_image( $order->products[$i]['id']), ' ', $width = 59) . '</td>' . "\n";
// | added by mwang to show thumbnail image in invoice |
' </tr>' . "\n";
Thanks.
Michelle




