Ecshop User Center Order Details Increase Express single Logistics information query display function

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.