ecshop后台订单信息页、订单商品编辑页,订单打印页 显示商品缩略图

一、打开 admin/order.php 文件 查找代码(建议使用editplus)

1 $sql = "SELECT o.*, IF(o.product_id > 0, p.product_number, g.goods_number) AS storage, o.goods_attr, g.suppliers_id, IFNULL(b.brand_name, '') AS

修改成:

1 $sql = "SELECT o.*, IF(o.product_id > 0, p.product_number, g.goods_number) AS storage, g.goods_thumb, o.goods_attr, g.suppliers_id, IFNULL(b.brand_name, '') AS

二、打开 admin/templates/order_info.htm   订单信息模板
查找代码 <td>{$goods.goods_sn}</td> 在后面添加代码 <td><img src="/{$goods.goods_thumb}" width="125" height="140"></td>

继续查找代码 <td scope="col"><div align="center"><strong>{$lang.goods_sn}</strong></div></td> 在后面添加代码 <td scope="col"><div align="center"><strong>商品图片</strong></div></td>

三、打开 data/order_print.html   打印模板页
同样在 {$goods.goods_sn} 后面增加 <img src="/{$goods.goods_thumb}">

查找代码 <td>&nbsp;{$goods.goods_sn} <!-- 商品货号 --></td> 在后面添加代码 <td><img src="/{$goods.goods_thumb}" width="121" height="136"> <!-- 商品略缩图 --></td>

再继续查找代码 <td bgcolor="#cccccc">{$lang.goods_sn}    <!-- 商品货号 --></td> 继续在后面添加代码 <td bgcolor="#cccccc">商品图片            <!-- 商品货号 --></td>

四、打开订单商品信息编辑页【添加订单】模板 admin/templates/order_step.htm

查找代码 <td>{$goods.goods_sn}

在这条代码前面加如下代码

<td><img src="/{$goods.goods_thumb}" width="125" height="140"></td>

订单信息页效果图:

订单信息页效果图

打印订单页效果图:

打印订单页效果图

订单商品信息编辑页【添加订单】

------------------------------------------华丽丽的分割线--------------------- ------------------------------------

源厂制造10-10000级洁净无尘车间防静电防尘用品!网址:http://www.lgfjd.com 微信号:614412
原文地址:https://www.cnblogs.com/wangblognet/p/2715008.html