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

2016-06-13 13:05 来源:www.chinab4c.com 作者: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把下面那段代码放到你想要的地方去!