We use Royal Mail and DPD Local. When logged in as a customer if you click 'Track Package' it works OK if shipped by RM but DPD Local will send you to the Australia Post website...
DPD Local tracking numbers are 12 digit numbers. Is there a fix for this please?
We had this issue and fixed with a small edit to incfunctions.php although our DPD Local consignment numbers are 10 digit and the parcel numbers are 14 and not 12. I believe Australia Post is 14 too.
Please could you confirm the number of digits in your tracking and I will lookup the changes I make and post for you.
Hi Steve and David I had a check and the problem is as Steve mentioned that the DPD tracking numbers are 14 digits as are the AusPost tracking numbers. But what I could do is check the Store Country as if the store is a UK one, it's not going to be using AusPost. But there seems to be a small problem in that when I track a parcel on the DPD site I get a URL like this... https://track.dpdlocal.co.uk/parcels/99999999999999*20085 ...where the 999's are the tracking number and "*20085" is added at the end. I'm assuming that *20085 is some kind of anti BOT control but I doubt I can just add that to every tracking number as it probably changes from time to time. Could I ask you David with the changes you made, was this an issue?
Checking the store country is a very good idea. As you rightly say both have 14 digit tracking and my mod removes the auspost version which of course wouldn't be any good in the core code.
The change I currenly make is to replace the two carrier=auspost lines with a DPD version and on the 2nd line I use the following:
This links to: https://www.dpdlocal.co.uk/apps/tracking/?reference=99999999999999 and this then redirects to: https://track.dpdlocal.co.uk/parcels/99999999999999*19801
I am not sure what the *????? is for but we have never had anyone say it doesn't work and I have just done a quick couple of tests and all seems good.
It was a long time ago but I seem to remember getting the URL from DPD as they were different for consignment and parcel numbers but both now seem to redirect to the same URL (https://track.dpdlocal.co.uk/parcels/....)