广州传奇网络

地址:广州市天河区东圃大马路富华楼C座

电话:13808825895

邮箱:gz020wbs@163.com

QQ:1564443073

网址:http://www.020wbs.com/

首页 > 二次开发Ecshop二次开发 > ecshop首页发货通知配送方式订单号收货人发货单号

二次开发Ecshop二次开发

二次开发Ecshop二次开发

ecshop首页发货通知配送方式订单号收货人发货单号

打开根目录下的index.php,找到:

$smarty->assign('invoice_list', index_get_invoice_query()); // 发货查询

在下面添加一行:

$smarty->assign('post_list', index_get_post_query()); // 发货通知

2·再找到:

/*------------------------------------------------------ *///-- PRIVATE FUNCTIONS/*------------------------------------------------------ */

在下面添加

/*

** 调用发货公告查询**

@access private* @return array

*/

function index_get_post_query(){$sql = 'SELECT order_sn, user_name,action_note FROM ' . $GLOBALS['ecs']->table('order_info') . ' JOIN (' . $GLOBALS['ecs']->table('users') . ',' .$GLOBALS['ecs']->table('order_action') . ') ON (' . $GLOBALS['ecs']->table('users') . '.user_id=' . $GLOBALS['ecs']->table('order_info') . '.user_idAND ' . $GLOBALS['ecs']->table('order_action') . '.order_id=' . $GLOBALS['ecs']->table('order_info') . '.order_id) WHERE ' . $GLOBALS['ecs']->table('order_info') . '.shipping_status = 1 ORDER BY shipping_time DESC LIMIT 10';$postinfo = $GLOBALS['db']->getAll($sql);clearstatcache();return $postinfo;}

3、在使用模板里面的library目录里,新建一个post_list.lbi的文件,把以下代码复制到这个文件里面去!

{$post.user_name} 您好,您所购物品已经发出,请注意查收!
备注:{$post.action_note}
{$post.goods_number}
---------------------------------
var speed=100demo2.innerHTML=demo1.innerHTMLfunction Marquee(){if(demo2.offsetTop-demo.scrollTop<=0)demo.scrollTop-=demo1.offsetHeightelse{demo.scrollTop++}}var MyMar=setInterval(Marquee,speed)demo.onmouseover=function(){clearInterval(MyMar)}demo.onmouseout=function(){MyMar=setInterval(Marquee,speed)}

4、然后打开index.dwt把下面那段代码放到你想要的地方去!