首页 > 代码库 > zencart后台订单详细页显示产品图片和链接

zencart后台订单详细页显示产品图片和链接

找到admin/order.php 大约491行

for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {

if (isset($order->products[$i][‘attributes‘])

之间的内容替换为

echo ‘          <tr class="dataTableRow">‘ . "\n" .                                                                ‘            <td class="dataTableContent" valign="top" align="right"><a href="http://www.mamicode.com/‘ .zen_catalog_href_link(FILENAME_PRODUCT_INFO, ‘products_id=‘ . $order->products[$i][‘id‘]) . ‘"target="_blank">‘.  zen_image(DIR_WS_CATALOG.DIR_WS_IMAGES . zen_get_products_image($order->products[$i][‘id‘]),$order->products[$i][‘name‘],‘60‘,‘60‘,‘"align="top"‘) . ‘</a>‘ . $order->products[$i][‘qty‘] . ‘&nbsp;x</td>‘ . "\n" .                                                                ‘            <td class="dataTableContent" valign="top"><a href="http://www.mamicode.com/‘ .zen_catalog_href_link(FILENAME_PRODUCT_INFO, ‘products_id=‘ . $order->products[$i][‘id‘]) . ‘"target="_blank">‘ . $order->products[$i][‘name‘] .‘</a>‘;

打完收工!


zencart后台订单详细页显示产品图片和链接