To Show image in admin/order.php in zencart
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