Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?



Find us on Facebook

Follow us on Twitter

View our YouTube channel


 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Tracking link
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author  Topic 
Page: of 2

Steved
Ecommerce Template Expert

United Kingdom
824 Posts

Posted - 03/01/2018 :  13:37:51  
Hi,

When a logged in customer views their order history and clicks on the tracking number, I see it takes them to the couriersí website. Can you remind me where I set this link up as currently customers are sent to the wrong site.

Thanks,

Steve

Sinbad
Administrator

65850 Posts

Posted - 03/01/2018 :  14:09:44  
Hi Steve, you can set the carrier for tracking in the vsadmin/includes.php

Default shipping tracking

This allows selection of the default shipping carrier on the tracking page. The choices are "ups", "usps" and "fedex". For instance...
$defaulttrackingcarrier="usps";

If you need to offer a choice of carriers for tracking, add the following

$trackingcarriers="ups,usps,fedex";

If you want the tracking link on orderstatus.php to go to your tracking.php page rather than the carrier web site for tracking details set the following (Version 6.6 required).

$useinternaltrackinglink=TRUE;

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

Steved
Ecommerce Template Expert

United Kingdom
824 Posts

Posted - 03/01/2018 :  14:52:28  
Hi Sinbad,

What I don't understand is that when clicked, the Royal Mail Tracking Numbers go to the Royal Mail website (correct) but Courier Tracking numbers go to DHL (incorrect - our courier is DPD)

I have nothing setup in includes so I don't understand where these links are generated.

Steve

dbdave
ECT Moderator

USA
8727 Posts

Posted - 03/01/2018 :  18:42:09  
The most likely explanation is that the software will try to determine the carrier by the tracking number.
For example in the US, UPS tracking numbers almost always start with 1Z
So I think based on the tracking number, the software is trying to determine the carrier and in this case, the DPD tracking number is similar to DHL tracking numbers.

Steved
Ecommerce Template Expert

United Kingdom
824 Posts

Posted - 03/02/2018 :  09:21:07  
Thanks Dave - thought it was odd. Anyway to disable it?

Andy
ECT Moderator

95440 Posts

Posted - 03/02/2018 :  09:58:02  
Hi Steve

I think David is correct and I can't see a way around it at the moment without disabling the tracking link.

Does that happen with all the ones you've seen. What's the format of the DPD tracking number?

Andy

Please feel free to review / rate our software

Andy
ECT Moderator

95440 Posts

Posted - 03/02/2018 :  09:58:04  
Hi Steve

I think David is correct and I can't see a way around it at the moment without disabling the tracking link.

Does that happen with all the ones you've seen. What's the format of the DPD tracking number?

Andy

Please feel free to review / rate our software

Steved
Ecommerce Template Expert

United Kingdom
824 Posts

Posted - 03/02/2018 :  12:46:58  
Hi Andy - yes it happens with all the courier tracking numbers.

The format for DPD is like this: 9029967199
Unfortunately the link goes to DHLís site

We only offer DPD or Royal Mail and Royal Mail works fine (format is KS603937267GB)

Steve


Edited by - Steved on 03/02/2018 12:49:16

Andy
ECT Moderator

95440 Posts

Posted - 03/02/2018 :  23:53:11  
I think that it is picking up on the 9 digit match for DHL tracking. I can't think of a workaround but will ask for you.

Andy

Please feel free to review / rate our software

Steved
Ecommerce Template Expert

United Kingdom
824 Posts

Posted - 03/03/2018 :  00:12:57  
Thanks Andy - it's not a major issue but I imagine it may confuse customers, particularly as the acronym DHL is very similar to DPD!

Steve

Vince
Administrator

39256 Posts

Posted - 03/03/2018 :  02:41:06  
Hi Steve
That seems to be a 10 digit DPD tracking number you have but everything I search for seems to suggest they use a 12 digit number. Can you possibly send as many good DPD numbers as you have to my email (vince AT ecommercetemplates DOT com) so I can see if there is a pattern that I can use to distinguish them from DHL?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Steved
Ecommerce Template Expert

United Kingdom
824 Posts

Posted - 03/03/2018 :  03:22:52  
Hi Vince,

They all seem to be 10 digit as far as I can see - I've sent you a list.

Thanks,

Steve

Edited by - Steved on 03/03/2018 03:24:27

Vince
Administrator

39256 Posts

Posted - 03/06/2018 :  01:47:42  
Hi Steve
It seems that a lot of the local couriers use this 10 digit format as well as DHL, and it's impossible to differentiate between them. So I've provided support for a new parameter, $tracklink10digit which in your case I think you would set to...
$tracklink10digit='https://www.dpdlocal.co.uk/apps/tracking/?parcel=';
I've added this change to the incfunctions.php file of the v6.9 updater. If you are on v6.8 at the moment the only file you need to update is the incfunctions.php file. You don't even need to run the updatestore.php script now as the two updaters are pretty much the same, (but going forward v6.9 will get new features while v6.8 now will only get bug and security fixes.)

Vince


Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Steved
Ecommerce Template Expert

United Kingdom
824 Posts

Posted - 03/06/2018 :  14:20:03  
Hi Vince,

Thanks for the update - Looks like the best way to tackle this. However, I followed your instructions, cleared all cache etc but unfortunately it still sends me to DHL

Steve

Vince
Administrator

39256 Posts

Posted - 03/07/2018 :  01:05:04  
Hi Steve
That's a shame. Can you send me FTP details and details of an account login I can test with and I'll see if I can sort it out.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

BrettFischer
Starting Member

South Africa
17 Posts

Pre-sales questions only
(More Details...)

Posted - 04/09/2018 :  15:04:37  
I have the same problem with South African tracking numbers.... Our prefix for all South African shipments is CN the suffix is ZA. The current system lists Canada Post if you click on the tracking and it goes to tracking.php..... It would be nice if you could revert to allowing people to specify their own courier tracking links or third party tracking like trackingmore.com - the reality is that UPS, DHL etc are overpriced couriers in most countries outside of the US and Europe.

Andy
ECT Moderator

95440 Posts

Posted - 04/10/2018 :  00:30:45  
Hi Brett

The addition Vince made there should allow you to specify the tracking company URL - it does require updating to 6.9 so it might be worth giving that a try.

Andy

Please feel free to review / rate our software

Jolly-Martian
Starting Member

United Kingdom
43 Posts

Posted - 09/19/2020 :  01:00:56  
Hi there,

On the page https://www.mywebsiteurl.co.uk/tracking.php

The default couriers to track are e.g. Fedex, UPS, how can i add the royal mail, dpd etc to appear too with their logos?

Jason

Vince
Administrator

39256 Posts

Posted - 09/19/2020 :  01:16:11  
Hi Jason
Support for the Royal Mail tracking is built into the system and you can set that by using "royalmail" as the tracking carrier. But DPD isn't supported I'm afraid.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Jolly-Martian
Starting Member

United Kingdom
43 Posts

Posted - 09/19/2020 :  01:22:01  
Hi Vince,

Is there anyone who can offer a mod to include more UK couriers for tracking purposes.

Thanks

Jason

Jolly-Martian
Starting Member

United Kingdom
43 Posts

Posted - 09/19/2020 :  01:28:17  
Hi Vince,

As per your message above

" $tracklink10digit='https://www.dpdlocal.co.uk/apps/tracking/?parcel='; "

Where do I add this, so it appears on the tracking.php page

Thanks

Jason
Page: of 2  Topic   
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2019 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000