Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Changing Carrier Tracking Links Rate Topic   - - - - -

 

Posted 29 June 2016 - 10:29 AM #1

How do I change the link that is produced for the tracking number in the dispatch email?  The DHL one currently points to the US site and I want to change it.

 



 
  • CS-Cart team
  • CS-Cart support team
  • Moderators
  • Join Date: 04-Apr 11
  • 3808 posts

Posted 29 June 2016 - 01:00 PM #2

How do I change the link that is produced for the tracking number in the dispatch email?  The DHL one currently points to the US site and I want to change it.

 

Here is the corresponding file: app/schemas/shippings/carriers.php


Sincerely yours, CS-Cart Support Team

 

User guide       |  Developer documentation  |  Core API documentation


 
  • hr31coupe
  • Member
  • Trial users
  • Join Date: 14-Jul 15
  • 22 posts

Posted 07 December 2016 - 09:25 AM #3

I've just upgraded my developer store to 4.4.2 so I can start playing with the custom invoice editor and I noticed it has reverted the link for Australia Post tracking back to the incorrect link.

 

I changed it in the carriers.php file which was in the location indicated above on my old installation but it does not seem to be there on 4.4.2

 

I tried copying the file across from my live store but it still doesn't seem to reference it.

 

It generates the url as - 

 

https://auspost.com....=b&id=(TrackingNo)#/track

 

when it actually should be

 

https://auspost.com....ck?id=(TrackingNo)

 

Any ideas where that carriers.php file is in the latest version??



 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3785 posts

Posted 07 December 2016 - 10:37 AM #4

/app/addons/mobile_admin_app/schemas/api/carriers.php



 
  • hr31coupe
  • Member
  • Trial users
  • Join Date: 14-Jul 15
  • 22 posts

Posted 07 December 2016 - 12:41 PM #5

Ok, so I found where the file is and I have the link 90% done but I don't know what to add on the end to get it to reference the tracking number entered in to each order.

 

It will do it if I add %s after id= but then it will open up a different page that I don't want it to.

 

file was actually located here - /app/Tygh/Shippings/Services/Aup.php

 

and my link looks like this so far - https://auspost.com....html#/track?id=



 
  • abcd
  • Advanced Member
  • Trial users
  • Join Date: 10-Sep 16
  • 52 posts

Posted 28 December 2016 - 07:20 AM #6

i have added extra carriers and their tracking url.. the urls working properly in frontend.. but when i click on tracking number in admin panel it redirects to the same order detail page instead of tracking url



 
  • remoteone
  • Member
  • Members
  • Join Date: 06-Oct 09
  • 714 posts

Posted 15 March 2019 - 01:56 AM #7

Heads up.
Australia Post,  in their infinite wisdom,  are changing the Tracking URL ...again.
 
Soon will be https://auspost.com.au/track/%5Bid%5D
An instruction regarding changes to which files needing to be updated would be handy.
 
eg,  for /app/Tygh/Shippings/Services/Aup.php
Currently for csc v4: 

'tracking_url' => 'http://auspost.com.au/track/track.html?exp=b&id=%s' 

Not sure what this should be now: Is this correct ?

'tracking_url' => 'https://auspost.com.au/track/%s'

And for
/design/themes/basic/mail/templates/common/carriers.tpl and

/design/themes/basic/templates/common/carriers.tpl

{$url = "http://auspost.com.au/track/track.html?id=`$tracking_number`"}

Change to?

{$url = "https://auspost.com.au/track/`$tracking_number`"}