cartProductDisplay already exists and is used in the regular shopping cart to show images. It shows a fairly large image and probably too big for your needs. I just added the XXX as an arrbitrary difference so your regular shopping cart wouldn't be changed.
Before you try this, remember, I've been using Zen cart for less than a month and my knowledge of PHP, Zen and CSS leaves much to be desired. In theory, I think this should work...
Add to your stylesheet
PHP Code:
img.cartProductDisplayXXX {
width: 2em;
height: 2em;
}
Then, wherever it was you put your code, put this in...
PHP Code:
<span class="cartProductDisplayXXX">
<?php
$products = $db->Execute("SELECT products_image
FROM " . TABLE_PRODUCTS . "
WHERE products_id ='" . $order->products[$i]['id'] . "'");
echo '' . zen_image(DIR_WS_CATALOG . DIR_WS_IMAGES . $products->fields['products_image'] , $order->products[$i]['name'], SMALL_IMAGE_HEIGHT, SMALL_IMAGE_WIDTH) . '</a> ';
?>
</span>
Like I said, in theory, this should work, unless my theory is wrong, which it very well could be. I haven't tested it and have no idea if it will work or not.
Let us know if it worked for you