It will also be more convenient for the customer to understand what they just bought for zencart
if you can show the imaeg in the confirmation in zencart
we just talk about the way to show image in the order.php page in the admin panel
here it the trick to show the image in the confirmation page
<td><?php echo zen_get_products_image($order->products[$i]['id'], $width = 39, $height = 40) ?></td>
yaho, it’s just so that easy, right
remember the zen_get_products_image function
function zen_get_products_image($product_id, $width = SMALL_IMAGE_WIDTH, $height = SMALL_IMAGE_HEIGHT)
The format is like this, hope this can help you.
Incoming search terms:
- zencart product image in confirmation
It’s much easier for us to manage the product and ship the things out if there can be a product image in the order management page, but normally zencart doesn’t support.
So here you go
this is the way to show images in order page in admin panel
it’s so easier acturally that you don’t need to worry about anything else
1, find the order.php page in the admin panel
find the code
<td valign="top">' . $order->products[$i]['name'];
and change it to be the
<td class="dataTableContent" valign="top"><img src="../' . DIR_WS_IMAGES . zen_get_products_image($order->products[$i]['id']) . '" height=50>' . $order->products[$i]['name'];
if you can understand the code then you can konw what’s that mean now
it’s just add a <img src=> and then to get the imaegs path through the code of zen_get_products_image($order->products[$i]['id'])
That’s so easy, isn’t it?
Cool
Incoming search terms:
- display shipping on admin orders zencart