欢迎光临
我们一直在努力

ecshop用户中心订单列表发货单配送跟踪状态信息查询插件

1,themesdefaultuser_transaction.dwt

找到
<!–{if $action eq order_detail} –>

在它的下面加入

<style>
.result-box{background-color:#fff;overflow:hidden;font-family:Tahoma,Arial,sans-serif;font-size:12px;border:1px solid #b9d0f0;line-height:24px}
.result-box table{width:100%;border-collapse:collapse;border-spacing:0}
.result-box table td{height:30px;color:#333;border-bottom:1px solid #e3e3e3}
.result-box table .tr1 td{color:#ff6c00}
.result-box table .td1{width:130px;padding:0 10px;line-height:30px}
.result-box table .td2{padding:0;overflow:hidden}
.result-box table .td2 span{display:block;width:380px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.result-box table .td2 strong{margin-left:5px;padding:0 1px;font-size:10px;color:#fff;background-color:#f00}
</style>
<!– {if $order.invoice_no}–>
<h5><span>物流跟踪</span></h5>
<div class=”blank”></div>
<div class=”result-box”>
<table>
<tbody id=”retData”></tbody>
</table>
</div>
<div class=”blank”></div>
<!–{/if}–>

找到

{$order.invoice_no}

在它前面加入 id=”invoice_no” ,方便下面抓取“发货单”

继续找到

{$order.shipping_name}

在它前面加入  id=”shipping_name” ,方便下面抓取“配送方式”

在页面的最后

<!– #BeginLibraryItem “/library/page_footer.lbi” –><!– #EndLibraryItem –>

的下面加入

<script language=”javascript”>
document.getElementById(“retData”).innerHTML=”<center>正在查询物流信息,请稍后…</center>”;
var expressid = document.getElementById(“shipping_name”).innerHTML;
var expressno = document.getElementById(“invoice_no”).innerHTML;
Ajax.call(‘./plugins/kuaidi100/kuaidi100_post.php?com=’+ expressid+’&nu=’ + expressno,’showtest=showtest’, function(data){document.getElementById(“retData”).innerHTML=data;}, ‘GET’, ‘TEXT’);
</script>

2,includeslib_transaction.php

找到

$order[‘invoice_no’] = $shipping->query($order[‘invoice_no’]);

把它注释。

3,把插件文件放到 plugins 文件夹下。

打包下载:
[fo_hide]ecshop用户中心订单列表发货单配送跟踪状态信息查询插件.zip  密码: 2pci[/fo_hide]

赞(0) 打赏
未经允许不得转载:程序开发爱好者 » ecshop用户中心订单列表发货单配送跟踪状态信息查询插件
分享到: 更多 (0)

网站设计及开发、微应用及微网站开发、微信公众平台开发、 HTML5手机网站开发、网络整合营销、APP开发、软件开发及企业电商服务

联系我们