X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Parcel Tracking for your Customers (https://forum.x-cart.com/showthread.php?t=53115)

isaels@i-artsupplies.co.u 07-02-2010 09:59 AM

Re: Parcel Tracking for your Customers
 
am using phils, sorry I forgot there were 2 on thread

kgoel 09-26-2010 09:30 PM

Re: Parcel Tracking for your Customers
 
Paul,

Did you solve the problem for 4.3.1 ?. If so, please post the changes that you have made. Thanks

isaels@i-artsupplies.co.u 09-27-2010 02:38 AM

Re: Parcel Tracking for your Customers
 
HI, no I gave up in the end, and just put some basic links within the text of the customer complete notificaition email. Would have prefered something a bit more fancy though.

Unfortunatly kept having the same problems though.
Thanks

floyd_2 10-18-2010 04:16 AM

Re: Parcel Tracking for your Customers
 
I implemented Phil's mod on my site in Australia for TNT, Hunter Express and Couriers Please. Great mod Phil, thanks. However, when it came to implementing it for Fastway Couriers there was a hitch :( The way Fastways construct their query URL is different to most others. Here's an example query URL:


where FA0017457708 is the Tracking Number.

The rest of the URL is static. The problem is that I can't get my head around how to create the URL using the form when the Arguments data has both a prefix (-A) and a suffix (,-N1,-AN).

I have assumed that the Tracking ID form input field data (the tracking number that the user types in) needs to be massaged prior to the form being submitted so that the prefix and suffix data is added to the tracking number - in this case changing it from

FA0017457708

to

-AFA0017457708,-N1,AN

I'm just wondering if anyone might have the expertise to assist with massaging the tracking number and modifying it as the form is being submitted.

Thanks in advance

Dean

Phoenixone 10-21-2010 06:55 AM

Re: Parcel Tracking for your Customers
 
Quote:

Originally Posted by floyd_2
I implemented Phil's mod on my site in Australia for TNT, Hunter Express and Couriers Please. Great mod Phil, thanks. However, when it came to implementing it for Fastway Couriers there was a hitch :( The way Fastways construct their query URL is different to most others. Here's an example query URL:



where FA0017457708 is the Tracking Number.

The rest of the URL is static. The problem is that I can't get my head around how to create the URL using the form when the Arguments data has both a prefix (-A) and a suffix (,-N1,-AN).

I have assumed that the Tracking ID form input field data (the tracking number that the user types in) needs to be massaged prior to the form being submitted so that the prefix and suffix data is added to the tracking number - in this case changing it from

FA0017457708

to

-AFA0017457708,-N1,AN

I'm just wondering if anyone might have the expertise to assist with massaging the tracking number and modifying it as the form is being submitted.

Thanks in advance

Dean


i used a iframe for mine
Code:

<iframe name=booking frameborder=0 width="100%" height="400px" src=http://www.supaswift.com/fx/Default.aspx?TabId=89&waybill={$order.tracking}></iframe>

so for yours i think this should work:

Code:

<iframe name=booking frameborder=0 width="100%" height="400px" src=http://www.fastway.com.au/Magic94Scripts/mgrqispi94.dll?appname=FW&prgname=PodResultNew&arg uments=-A{$order.tracking},-N1,-AN></iframe>

PhilJ 11-12-2010 06:47 AM

Re: Parcel Tracking for your Customers
 
TNT added if anyone's interested.

floyd_2 11-12-2010 07:18 AM

Re: Parcel Tracking for your Customers
 
Thanks everyone. I ended up assembling the string using javascript and it works a treat. Because the tracking form I'm using doesn't actually reference {$order.tracking} - it's on the sidebar - I had to assemble the string based on a customer input tracking number. The tracking box I'm using is form based and coded in javascript anyway. I just needed to add a function to do the string handling for me before the form was actually posted, and after the customer had entered their tracking number. I put a function into the java sidebar form app as follows:

Code:

<script type="text/javascript" language="JavaScript">
function ActionDeterminator()
{
  var prefix = "-A";
  var suffix = ",-N1";
  var track = document.myform.arguments.value;
  var fullstring = prefix + track + suffix;
  document.myform.arguments.value = fullstring;
  document.myform.action = 'http://www.fastway.com.au/Magic94scripts/mgrqispi94.dll';
  document.myform.method = 'post';
return true;
}


and altered the submit button code for Fastways to call the function as follows:

Code:

<input type="submit" name="Submit" value="Go" onClick="return ActionDeterminator();">

Dean

vitalaccessories 01-03-2011 03:20 PM

Re: Parcel Tracking for your Customers
 
Hi,

This is a really interesting thread. I am trying to come up with something that will allow customers to track their parcels progress using DHL or Interlink in the UK. Maybe it's feasible using an adaptation of the mods found here?

One other thing though, how are you giving the tracking information to customers in the first place? I would like to enter it when changing the order status to complete but can't see an option to enter free text that will be shown in the email sent to the customer when 'complete' is triggered. Just wondering how you guys transmit this info'...

Thanks.

Dan.roh 01-03-2011 08:30 PM

Re: Parcel Tracking for your Customers
 
There is a free mod that allows you to do this when complete is triggered. When I locate it I will post it for you

vitalaccessories 01-04-2011 08:40 AM

Re: Parcel Tracking for your Customers
 
Quote:

Originally Posted by Dan.roh
There is a free mod that allows you to do this when complete is triggered. When I locate it I will post it for you


That would be very appreciated, thanks. I am standing by...


All times are GMT -8. The time now is 07:03 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.