ecshop用户中心订单详情增加快递单物流信息查询显示的功能
2024-10-15 08:13:41
1,themes\default\user_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}
在页面最后的
<!-- #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,includes\lib_transaction.php
找到
$order['invoice_no'] = $shipping->query($order['invoice_no']);
把它注释。
3,把插件文件放到 plugins 文件夹下。
打包下载:http://d.16css.com/d/file/ecshop/201501/5c9f5f4b3eef4dda182f269f41f1ddc2.zip
转载:http://www.16css.com/ecshop/1145.html
最新文章
- iOS-网络处理
- 记录 android 开发的一个 ";面试"; 问题
- MATLAB绘图
- Asp.Net - 9.socket(聊天室)
- WCF初探-19:WCF消息协定
- 【BZOJ】【1045/1465】【HAOI2008】糖果传递
- CentOS 7下的软件安装方法及策略
- Windows7 搜索功能关闭了,怎么重新打开
- C:\WINDOWS\system32\config\systemprofile\Desktop引用了一个不可用的位置
- JavaScript严格模式有什么不同
- How to using Piwis Tester II code Porsche rear end electronics
- 小程序之 fixed定位下scroll-view左右滚动失效
- Spring Boot Endpoint
- 使用Phar来打包发布PHP程序
- std::lock_guard/std::unique_lock
- A除以B
- 函数isNaN() parseFloat() parseInt() Math对象
- centos7 (ifconfig不能使用) -bash: ifconfig: command not found
- fastdfs(https://www.jianshu.com/p/1c71ae024e5e)
- Mybatis 系列6-结合源码解析节点配置:objectFactory、databaseIdProvider、plugins、mappers