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>

 

 

订单信息页效果图:

订单信息页效果图

 

 

打印订单页效果图:

打印订单页效果图

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

 

转载于:https://www.cnblogs.com/wangblognet/archive/2012/10/08/2715008.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值