$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'] );
第二步:
{$lang.order_addtime}
在上面新建一行增加以下代码:
订单图片 收货人
再查找代码:
{$item.order_time}
再上面新建一行增加以下代码:
{$item.consignee}
这样就OK了,当然第二步你也可以不用按照这个来,自己随意在想要显示的位置,使用以下代码调用就行:版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: ecshop用户中心我的订单显示收货人及商品缩略图