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

最新文章

  1. iOS-网络处理
  2. 记录 android 开发的一个 &quot;面试&quot; 问题
  3. MATLAB绘图
  4. Asp.Net - 9.socket(聊天室)
  5. WCF初探-19:WCF消息协定
  6. 【BZOJ】【1045/1465】【HAOI2008】糖果传递
  7. CentOS 7下的软件安装方法及策略
  8. Windows7 搜索功能关闭了,怎么重新打开
  9. C:\WINDOWS\system32\config\systemprofile\Desktop引用了一个不可用的位置
  10. JavaScript严格模式有什么不同
  11. How to using Piwis Tester II code Porsche rear end electronics
  12. 小程序之 fixed定位下scroll-view左右滚动失效
  13. Spring Boot Endpoint
  14. 使用Phar来打包发布PHP程序
  15. std::lock_guard/std::unique_lock
  16. A除以B
  17. 函数isNaN() parseFloat() parseInt() Math对象
  18. centos7 (ifconfig不能使用) -bash: ifconfig: command not found
  19. fastdfs(https://www.jianshu.com/p/1c71ae024e5e)
  20. Mybatis 系列6-结合源码解析节点配置:objectFactory、databaseIdProvider、plugins、mappers

热门文章

  1. iOS开发——数据持久化Swift篇&amp;模型对象归档
  2. iOS开发——高级技术&amp;二维码功能的实现
  3. Linux-PAM(Linux下的密碼認證和安全机制)系統管理員指南(中文版)
  4. DTCC2016
  5. Ext.Net 问题收集
  6. com.code.servlet
  7. C#_delegate - 调用列表
  8. DBCP数据源
  9. Android 自学之列表选择框Spinner
  10. Django request 常用属性