Jump to content

[Shipping] ROYAL MAIL TRACE ORDER LINK


Guest benjam

Recommended Posts

Guest benjam

ROYAL MAIL TRACE ORDER LINK

By Benjam

With thanks and credit to JBDANCER for the initial code and help

Tested in cubecart version 2.0.3

About:

This mod allows the customer to see the Tracking number when they view their order info as an active link. When they click on the link they will be taken to the Royal Mail tracking page where they will be told the the delivery status of their order.

Very professional and the same service that Play.com use on their website. And its FREE!!!

View File

Link to comment
Share on other sites

Hi I tried to install the code below but i cant fine the codes that jbdancer said in view_order.php so i dont know where to replace them .Thanks

***Step 1.





Open view_order.php





Find ->



echo"<br><br><b>$la_tracking_number</b><br>$tracking_no<br></td>







Replace with -->



echo"<br><br><b>$la_tracking_number</b><br><a href=\"http://afis.postoffice.co.uk:8080/RoyalMail/RMGTT?ITEMIN=$tracking_no&DATEIN=$ship_date\">$tracking_no</a><br><br></td>









***Step 2.



Still in view_order.php





Find ->



    	$ship_service=$row["ship_service"];

    	$tracking_no=$row["tracking_no"];

    	$customer_comments=$row["customer_comments"];

    	$customer_comments = stripslashes($customer_comments);



Replace with -->



  

    	$ship_service=$row["ship_service"];

    	$ship_date=$row["ship_date"];

    	$tracking_no=$row["tracking_no"];

    	$customer_comments=$row["customer_comments"];

    	$customer_comments = stripslashes($customer_comments);

Link to comment
Share on other sites

×
×
  • Create New...