|
||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
NOTE: This works for ISC 4.0 and if you ONLY use USPS for your shipments.
1) Make backup copies of everything you change. 2) Load the following file into your editor: /templates/YOURTEMPLATE/Snippets/AccountOrderStatusItem.html 3) At (or near) line 20 you'll see the following code: HTML Code:
%%LNG_OrderTrackingNoIs%% <strong><em>%%GLOBAL_OrderTrackingNo%%</em></strong> HTML Code:
%%LNG_OrderTrackingNoIs%% <strong><em><a href = "http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum=%%GLOBAL_OrderTrackingNo%%" target = "_track">%%GLOBAL_OrderTrackingNo%%</a></em></strong> AGAIN... if you do not use USPS exclusively, or if you use a carrier OTHER than USPS, this hack will not work. Good luck |
|
#2
|
|||
|
|||
|
Good tip, I used this for other carriers as well. Although with a bit of neat javascript im sure you can code something which shows you the link depending on carrier, but since I use ups 99% of the time we adopted it as well. If any code gurus wanna code something up be my guest
![]() dhl --- http://track.dhl-usa.com/TrackByNbr....entNumber=xxxx ups --- http://wwwapps.ups.com/WebTracking/p...tracknum=xxxxx fedex --- http://www.fedex.com/Tracking?action...cknumbers=xxxx Ofcourse you would replace the x's with your number Last edited by teebo; 10-29-2008 at 08:55 PM.. |
|
#3
|
|||
|
|||
|
Alternatively, you should be able to implement a tracking link with tracking number for each of your shippers by editing the appropriate ISC shipping module. For example, say you ship via UPS.
1. Open /modules/shipping/module.ups.php and look for PHP Code:
HTML Code:
http://wwwapps.ups.com/WebTracking/processRequest?&tracknum= HTML Code:
<a href="%%GLOBAL_TrackURL%%#" target="_blank">%%LNG_ClickHereToTrackYourOrder%%</a> HTML Code:
<a href="%%GLOBAL_TrackURL%%%%GLOBAL_OrderTrackingNo%%" target="_blank">%%LNG_ClickHereToTrackYourOrder%%</a> Also, keep in mind that the shipping modules are outside of the templates. This means that when you upgrade the cart, you will most likely have to manually replace the old module with the new one then re-implement the modifications. Well worth it I think from a customer service standpoint. Hopefully Interspire will implemement something link this permanently in a future release. |
|
#4
|
|||
|
|||
|
Yup - would make more sense to be able to enter a URL format in the shipping section of the admin area on a per-shipping-method basis so you could use custom shiip-by-weight methods and enter your own link structure.
Having said that you've got a good solution there for the majority of built in modules in the meantime! |
|
#5
|
|||
|
|||
|
Quote:
When dealing with these shipping modules I would stray away from editing the template files for changing those files is a kind of global change, in regards to the shipping methods. This is usually not desired for most people are using multiple shipping carriers/methods. Each shipping module contains a call-back called "GetTrackingLink". This call back is just suppose to return a full URL. The URL will most likely be the link that a user can click on and take them to the tracking website. For this explanation I will use the Fedex shipping module to show this hack.
Please note that you can adapt this method to any shipping method. Just know that $GLOBALS["OrderTrackingNo"] contains the tracking number for the current order. Hope this helps. Julian |
|
#6
|
|||
|
|||
|
Julian,
What does this do? |
|
#7
|
|||
|
|||
|
What Julian is suggesting is to alter the code to include a tracking number on a 'per module' basis within the assigned GetTrackingLink() function, rather than altering the template to suit.
It's a slightly more robust solution that won't break when/if you update a template. Similarly, should your shipping provider change their tracking link it will generally be easier to edit. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|