ECSHOP用户中心我的订单显示收货人及商品缩略图
2016-06-13 13:05 来源:www.chinab4c.com 作者:ecshop专家
ECSHOP系统用户中心我的订单中不能显示收货人及商品缩略图图,没有这个非常不方便。好在ECSHOP是开源的,通过以下方法可以实现:先来张图:第一步:打开 includes/lib_transaction.php 文件,查找:$sql = "SELECT order_id, order_sn, order_status, shipping_status, pay_status, add_time, " .替换为:$sql = "SELECT order_id, order_sn, order_status, shipping_status,consignee, pay_status, add_time, " .继续查找:$row['order_status'] = $GLOBALS['_LANG']['os'][$row['order_status']] . ',' . $GLOBALS['_LANG']['ps'][$row['pay_status']] . ',' . $GLOBALS['_LANG']['ss'][$row['shipping_status']];在这行代码下面新建一行添加以下代码:$row['goods_name'] =$GLOBALS['db'] ->getOne("select goods_name from". $GLOBALS['ecs']->table("goods"). "where goods_id =(select min(goods_id) from". $GLOBALS['ecs']->table("order_goods"). "where order_id=".$row['order_id'].")"); $row['goods_id'] =$GLOBALS['db'] ->getOne("select goods_id from". $GLOBALS['ecs']->table("goods"). "where goods_id =(select min(goods_id) from". $GLOBALS['ecs']->table("order_goods"). "where order_id=".$row['order_id'].")"); $row['goods_thumb'] =$GLOBALS['db'] ->getOne("select goods_thumb from". $GLOBALS['ecs']->table("goods"). "where goods_id =(select min(goods_id) from". $GLOBALS['ecs']->table("order_goods"). "where order_id=".$row['order_id'].")");再继续查找:$arr[] = array('order_id' => $row['order_id'],在下面新建一行添加以下代码:'pay_status' => $row['pay_status'],再继续查找:'handler' => $row['handler']);替换成:'handler' => $row['handler'], 'goods_name' => $row['goods_name'], 'goods_thumb' => $row['goods_thumb'], 'goods_id' => $row['goods_id'], 'consignee' => $row['consignee'] );第二步:打开我的订单模板文件:查找:1
最近更新
常用插件
- ecshop会员中心订单excel倒出
ecshop会员中心订单excel倒出...
- ecshop2.7.2退换货申请插件
ecshop2.7.2退换货申请插件,主要是在 ecshop 现在的基础上,对ecshop的订单处...
- ecshop二次开发商品购买备
ecshop销售统计 插件介绍:ecshop二次开发订单销售统计和商品购买备注服...
- ecshop注册推荐送现金插件
ecshop中的促销售功能还不是很完善,随着电子商务系统的发展和进步,...
- ecshop二次商品订购人信息
ecshop二次商品订购人信息填写插件,有时候给朋友送花,或者是送礼品的...