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

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

打开admin/order.php页面
1.大概493行找到

[sourcecode language=”plain”]<td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td>[/sourcecode]

在后面加上

[sourcecode language=”plain”]<td class="dataTableHeadingContent">Products Images</td>[/sourcecode]

2.大概504行找到

[sourcecode language=”plain”]<td class="dataTableContent" valign="top">’ . $order->products[$i][‘name’];[/sourcecode]

替换

[sourcecode language=”plain”]<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>’;[/sourcecode]

3.大概516行找到

[sourcecode language=”plain”]<td class="dataTableContent" valign="top">’ . $order->products[$i][‘model’] . ‘</td>'[/sourcecode]

在上面添加

[sourcecode language=”plain”]'<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>’ . [/sourcecode]

下载此文件orders

发表评论

© 2022. powered by PHP 个人小站