Post by allenshea » Mon Aug 02, 2010 12:15 pm

My original website has express tracking, see below picture,
trackinghtml.jpg

Express tracing in HTML - trackinghtml.jpg (70.86 KiB) Viewed 4342 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 4342 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

I know nothing about PHP and SQL, but I still try my best to understand it.


Active Member

Posts

Joined
Mon Dec 14, 2009 10:01 pm

Post by allenshea » Tue Aug 03, 2010 1:08 pm

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 4328 times


I know nothing about PHP and SQL, but I still try my best to understand it.


Active Member

Posts

Joined
Mon Dec 14, 2009 10:01 pm

Post by dramony » Tue Aug 03, 2010 2:07 pm

hi,

How and where can we add the code?
thanks!

User avatar
Active Member

Posts

Joined
Sat Oct 24, 2009 12:34 pm

Post by allenshea » Tue Aug 03, 2010 2:28 pm

I've add them in Information section.

I know nothing about PHP and SQL, but I still try my best to understand it.


Active Member

Posts

Joined
Mon Dec 14, 2009 10:01 pm

Post by dramony » Tue Aug 03, 2010 2:41 pm

can you give me a link?
can you please re-post the code again?
thanks

User avatar
Active Member

Posts

Joined
Sat Oct 24, 2009 12:34 pm

Post by Qphoria » Wed Aug 04, 2010 2:45 am

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

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by dramony » Wed Aug 04, 2010 12:47 pm

thanks Q, but it would also be nice to get the tracking details within the OC page.

User avatar
Active Member

Posts

Joined
Sat Oct 24, 2009 12:34 pm

Post by DannyMacD » Fri Aug 27, 2010 6:41 pm

Hello, is there the same type of coding for Royal Mail and APC?

Active Member

Posts

Joined
Fri Jun 26, 2009 6:39 am
Who is online

Users browsing this forum: No registered users and 49 guests