Page 1 of 1

[HOW TO] use DHL tracing in OC 1.4.8

Posted: Mon Aug 02, 2010 12:15 pm
by allenshea
My original website has express tracking, see below picture,
trackinghtml.jpg

Express tracing in HTML - trackinghtml.jpg (70.86 KiB) Viewed 5260 times

But once I put the code in OC, it doesn't work,
trackingoc.jpg

Express tracing in OC - trackingoc.jpg (22.21 KiB) Viewed 5260 times

My code in HTML as below

Code: Select all

<div align="center">
  <TABLE width=530 border=0 cellPadding=0 cellSpacing=8 style="BORDER-RIGHT: #d4d4d4 1px solid; BORDER-TOP: #d4d4d4 1px solid; BORDER-LEFT: #d4d4d4 1px solid; BORDER-BOTTOM: #d4d4d4 1px solid">
    <TR>
		<TD bgColor="#eeeeee" vAlign="top" align="left" width="690" style="font-size: 9pt; color: #036; line-height: 140%; font-family: Arial" colspan="2">
          <p align="center"><b>Express Tracking</b></TD>
        </TR>
		<TR>
		<TD vAlign="center" align="center" width="180" bgColor="#eeeeee" style="font-size: 9pt; color: #036; line-height: 140%; font-family: Arial">
          <a href="http://www.dhl.com/publish/g0/en/eshipping/track.high.html" style="color: #3975A9">
          <img border="0" src="dhl_logo.gif"></a></TD>
        <TD vAlign="top" align="left" style="font-size: 9pt; color: #036; line-height: 140%; font-family: Arial" width="550"><TABLE cellSpacing="0" cellPadding="6" width="100%" align="left" bgColor="#333333" border="0">
          <TBODY><TR>
			<TD bgColor="#eeeeee" style="font-size: 9pt; color: #036; line-height: 140%; font-family: Arial">[<A href="http://www.dhl.com/publish/g0/en/tools/dropoff.high.html" target="_blank" style="color: #036; text-decoration: none">Track <B>DHL</B> Express Shipments</A>]</TD></TR>
            <TR height="1">
				<TD bgColor="#6699cc" style="font-size: 9pt; color: #036; line-height: 140%; font-family: Arial"></TD></TR>
            <TR><TD bgColor="#eeeeee" style="font-size: 9pt; color: #036; line-height: 140%; font-family: Arial">
                <TABLE>
                  <TBODY><TR>
                      <FORM id=tracking name=fastTrack onSubmit="return checkTrack()" action="http://www.dhl.com/publish/g0/en/eshipping/track.high.html" method="get" target="_blank">
                        <INPUT type=hidden value=RESULTS name=pageToInclude>
                        <TD width="140" style="font-size: 9pt; color: #036; line-height: 140%; font-family: Arial">Tracking Number</TD>
                        <TD width="140" style="font-size: 9pt; color: #036; line-height: 140%; font-family: Arial">
                        <INPUT id=AWB onfocus="this.value='';" value='DHL AWB No.' name=AWB></TD>
                        <TD style="font-size: 9pt; color: #036; line-height: 140%; font-family: Arial"><INPUT name="submit10" type="submit" id=submit onMouseOver="this.id='trackingSubmitSelected'"  onMouseOut="this.id='trackingSubmit'" value="Track"></TD>
                        <INPUT type=hidden value=fasttrack name=type>
                      </FORM>
                    </TR></TBODY>
              </TABLE></TD></TR></TBODY>
        </TABLE></TD></TR>
  </TABLE>
  </div>
Please kindly let me know if anyone know how to convert HTML code to OC Shop. Thanks for any help.

Allen

Re: [HOW TO] use DHL tracing in OC 1.4.8

Posted: Tue Aug 03, 2010 1:08 pm
by allenshea
OK, the problem is solved. After change the <Form> position, my express tracking works fine.
Cargo Tracking.jpg

Cargo Tracking - Cargo Tracking.jpg (69.55 KiB) Viewed 5246 times


Re: [HOW TO] use DHL tracing in OC 1.4.8

Posted: Tue Aug 03, 2010 2:07 pm
by dramony
hi,

How and where can we add the code?
thanks!

Re: [HOW TO] use DHL tracing in OC 1.4.8

Posted: Tue Aug 03, 2010 2:28 pm
by allenshea
I've add them in Information section.

Re: [HOW TO] use DHL tracing in OC 1.4.8

Posted: Tue Aug 03, 2010 2:41 pm
by dramony
can you give me a link?
can you please re-post the code again?
thanks

Re: [HOW TO] use DHL tracing in OC 1.4.8

Posted: Wed Aug 04, 2010 2:45 am
by Qphoria
A simple option would just be to use that code as part of an information page like here:
http://www.gqscooters.com/track-order

Just copy the source code from there and paste it into "SOURCE" mode in the information page

Re: [HOW TO] use DHL tracing in OC 1.4.8

Posted: Wed Aug 04, 2010 12:47 pm
by dramony
thanks Q, but it would also be nice to get the tracking details within the OC page.

Re: [HOW TO] use DHL tracing in OC 1.4.8

Posted: Fri Aug 27, 2010 6:41 pm
by DannyMacD
Hello, is there the same type of coding for Royal Mail and APC?