1,themes\default\user_transaction.dwt
Found it:
<!--{if$action eq order_detail}--
Join in the following line:
<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 er. Invoice_no} -<h5><span>Logistics tracking</span></h5><Divclass= "blank"></Div><Divclass= "Result-box"><Table><tbodyID= "Retdata"></tbody></Table></Div><Divclass= "blank"></Div><!--{/if} -
Continue to find:
{er. Invoice_no}
Add id= "Invoice_no" in front of it to grab "invoice" below
Continue to find
{er. Shipping_name}
At the end of the page
<!--#BeginLibraryItem "/library/page_footer.lbi"--><!--#EndLibraryItem--
The following line increases:
<script language= "JavaScript" > document. getElementById ("Retdata"). Innerhtml= "<center> The logistics information is being queried, please ...</center> later "; var expressid = document.getElementById ("Shipping_name"). InnerHTML; var expressno = document.getElementById ("Invoice_no"). InnerHTML; Ajaxfunction(data) {document.getElementById ("Retdata"). Innerhtml=data;}, ' GET ', ' TEXT '); </script>
2,includes\lib_transaction.php
Found it
er $shipping->query (er[' invoice_no ']);
to annotate it.
3, put the plug-in file into the Plugins folder.
Package Download: Http://d.16css.com/d/file/ecshop/201501/5c9f5f4b3eef4dda182f269f41f1ddc2.zip
Reprint: http://www.16css.com/ecshop/1145.html
Ecshop User Center Order Details Increase Express single Logistics information query display function