关于优化ecshop默认显示的发货订单功能

2016-09-11 20:39 来源:www.chinab4c.com 作者:ecshop专家

  在ecshop当中,默认订单显示显示个订单号与相应的查询网址,觉得这不符合用户体验!

我们可以去掉这个网址链接,还可加上配送方式显示。

以下最模板的相应修改方法:

1. 先屏蔽网址链接

找到index.php

删除以下代码

2. 加上快递显示。

还是173行。这里替换掉SQL

把 $sql = 'SELECT o.order_sn, o.invoice_no, s.shipping_code FROM ' . $GLOBALS['ecs']->table('order_info') . ' AS o' .

            ' LEFT JOIN ' . $GLOBALS['ecs']->table('shipping') . ' AS s ON s.shipping_id = o.shipping_id' .
            " WHERE invoice_no > '' AND shipping_status = " . SS_SHIPPED .
            ' ORDER BY shipping_time DESC LIMIT 10';
换成:
$sql = 'SELECT o.order_sn, o.invoice_no, s.shipping_code,s.shipping_name FROM ' . $GLOBALS['ecs']->table('order_info') . ' AS o' .
            ' LEFT JOIN ' . $GLOBALS['ecs']->table('shipping') . ' AS s ON s.shipping_id = o.shipping_id' .
            " WHERE invoice_no > '' AND shipping_status = " . SS_SHIPPED .
            ' ORDER BY shipping_time DESC LIMIT 10'; 
在模板里加入index.dwt 里加入 {$invoice.shipping_name}