1)、首先下载物流跟踪插件ecshop_express.rar,
将它下载到你网站根目录的plugins 子目录中,
然后点击ecshop_express.rar 文件,选择"解压到ecshop_express " ,
解压后ecshop_express 目录下存在两个文件:express.php 、snoopy.php
2) 打开/themes/default/user_transaction.dwt 文件
将{$order.invoice_no} 修改为
<b id="shipping_name">{$order.shipping_name}</b>
<b id="invoice_no">{$order.invoice_no|strip_tags}</b>
接着,将
- <!--{if $order.to_buyer}-->
修改为
- <div class="blank"></div>
- <!--{if $order.invoice_no}-->
- <h5><span>物流跟踪</span></h5>
- <div class="blank"></div>
- <table width="100%" border="0" cellpadding="5" cellspacing="1"
- bgcolor="#dddddd">
- <tr><td bgcolor="#ffffff"><div id="retData"></div></td></tr>
- </table>
- <--{/if}-->
- <script language="javascript">
- document.getElementByIdx_x("reData").innerHTML="Loading...";
- var expressid=document.getElementByIdx_x("shipping_name").innerHTML;
- var expressno=document.getElementByIdx_x("invoice_no").innerHTML;
- Ajax.call('plugins/ecshop_express/express.php','data='+expressid
- +''+expressno,invoice_callback,'GET','TEXT',true,true);
- function invoice_callback(result){
- document.getElementByIdx_x('reData').innerHTML=result;
- }
- </script>
- <table width="100%" border="0" cellpadding="5" cellspacing="1"
- bgcolor="#dddddd">
- <!--{if $order.to_buyer}-->
就OK了!!
新闻热点
疑难解答