1、修改 includes/lib_order.php ,找到 order_goods 函数部分,大概在467行左右,代码如下
$sql = "SELECT rec_id, goods_id, goods_name, goods_sn, market_price, goods_number, " .
"goods_price, goods_attr, is_real, parent_id, is_gift, " .
"goods_price * goods_number AS subtotal, extension_code " .
"FROM " . $GLOBALS['ecs']->table('order_goods') .
" WHERE order_id = '$order_id'";
修改成:
复制代码
$sql = "SELECT a.rec_id as rec_id, a.goods_id as goods_id, a.goods_name as goods_name, g.goods_thumb as goods_thumb, a.goods_sn as goods_sn, a.market_price as market_price, a.goods_number as goods_number, " .
"a.goods_price as goods_price, a.goods_attr as goods_attr, a.is_real as is_real, a.parent_id as parent_id, a.is_gift as is_gift, " .
"a.goods_price * a.goods_number AS subtotal, a.extension_code as extension_code " .
"FROM " . $GLOBALS['ecs']->table('order_goods') .
"as a , ". $GLOBALS['ecs']->table('goods') ." as g ".
" WHERE a.goods_id = g.goods_id and a.order_id = '$order_id'";
复制代码
2、修改 user_transaction.dwt 文件,
在
<th width="29%" align="center" bgcolor="#ffffff">{$lang.goods_attr}</th>
上面增加一行代码
<th align="center" bgcolor="#ffffff">缩略图</th>
紧接着在
<td align="left" bgcolor="#ffffff">{$goods.goods_attr|nl2br}</td>
上面增加一行代码
<td align=center bgcolor="#ffffff"><img src="{$goods.goods_thumb}" width="80" style="border:#999999 solid 1px"/></td>
相关文章
ecshop出现Warning: Invalid argument supplied for foreach()错误2019-02-26
Ecshop 分类页产品列表不同分类调用不同产品属性2018-03-08
ECSHOP商品属性调用到任意页面方法2018-03-01
ECSHOP商品列表页显示每个商品的品牌2018-02-28
Ecshop 分类页品牌调用商品数量2018-02-28
ecshop调整默认商品图片排序2018-02-27
ecshop各个页面调用商品销售量方法2016-09-23
ecshop mobile首页循环显示分类及分类下商品2016-09-23
ecshop后台添加虚拟销量以及前台显示销量2016-09-22
ecshop重新导入数据库,管理员和密码正确登录失败2016-09-21