ZenCart后台訂單詳細頁顯示產品圖片和鏈接


修改admin/order.php大約482行
<td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td>
后面加上

<td class="dataTableHeadingContent">Products Images</td>
將大約493行

'            <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . ' x</td>' . "\n" .
           '            <td class="dataTableContent" valign="top">' . $order->products[$i]['name'];
替換為

'            <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . ' x</td>' . "\n" .
           '            <td class="dataTableContent" valign="top"><a href="' .zen_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $order->products[$i]['id']) . ' "target="_blank">' . $order->products[$i]['name'] . "</a>". "\n" .
           '            <td class="dataTableContent" valign="top" width="90">'.zen_image(DIR_WS_CATALOG.DIR_WS_IMAGES . zen_get_products_image($order->products[$i]['id']),'','60','60') .'</td>';
將528行colspan=”8″改為9

<td align="right" colspan="9"><table border="0" cellspacing="0" cellpadding="2">


效果圖:

 


注意!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。



 
粤ICP备14056181号  © 2014-2021 ITdaan.com