Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 2 votes

[contribution] Tracking Module


278 replies to this topic

#261 bhbilbao

  • Community Member
  • 291 posts
  • Real Name:BLACKHOLE
  • Gender:Male
  • Location:Spain

Posted 06 January 2010, 16:07

I have little problems with this contribution.

When a customer see his order history:

Quote


the always says "Whithout Tracking ID"

Looking for the database tables the data is right:

Quote

orders_status_history_id orders_id orders_status_id date_added customer_notified comments tracking_id
402 246 3 06/01/2010 16:03 1 Send. 00345630001234566385|dp

Looking for the code of account_history_info.php is this:
         '                <td class="main" align="center" valign="top">' . $tracking->display_tracking_link($statuses['tracking_id'], TRACKING_LINK_LABEL) . '</td>' . "\n" .

Why dont appear the tracking ID to the customers comments.???

In admin/orders is right, but the code is different:
'            <td class="smallText" align="center">' . $tracking->display_tracking_link($orders_history['tracking_id']) . '</td></tr>' . "\n";


Also, sometimes in admin/orders.php gets this error when updating:
Warning: Cannot modify header information - headers already sent by (output started at */htdocs/includes/languages/espanol/tracking_module.php:61) in */htdocs/admin/includes/functions/general.php on line 89


#262 kenz

  • Community Member
  • 157 posts
  • Real Name:kensley

Posted 07 January 2010, 21:28

Does anyone know how to set a range from 8 to 25 digits for the fedex validation, instead of it being constant single number.

fedex express is 12 digits long
fedex ground is 22 to 25 characters long
postal office smart post can be more than 25 digits long.

I'm assuming this all can be the same tracking module with a regular expression of numbers between 12 and 50. But how is that written and where in the code or in the database do you store that?

thanks

#263 kenz

  • Community Member
  • 157 posts
  • Real Name:kensley

Posted 07 January 2010, 22:14

got it - simply uninstall your fedex tracking module - then go into your includes/modules/tracking/ fedex.php tracking page and update your validation code to something like this...
/^\\\d{8,25}$/

save the file, install the tracking module again in the admin and it should work.

#264 X_Defrag_X

  • Community Member
  • 12 posts
  • Real Name:Reece

Posted 01 June 2010, 04:49

View Postchris23, on 08 February 2008, 11:45, said:

Hi Gareth,

I've just PMd you

Cheers

Chris

Any chance you could fill me in on this secret too? im having a similar issue.

Cheers,
Reece

#265 X_Defrag_X

  • Community Member
  • 12 posts
  • Real Name:Reece

Posted 01 June 2010, 07:08

Ignore the last post, i figured out that i forgot to add the constants to the language file.

However. i got everything looking good. it accepts my tracking number links are all there.

BUT. When i click to view it, it does the little "Contacting courier... Please Wait"

and then it shows nothing. i dont even get the "cannot contact the server" or anything. just nothing except the "[X] Close" thing.

I've got my start & grab code set to

$StartGrab = '<html>';
$EndGrab = '</html>';

So it should just show me everything.

Any ideas?

Cheers,
Reece

#266 X_Defrag_X

  • Community Member
  • 12 posts
  • Real Name:Reece

Posted 02 June 2010, 02:56

View PostX_Defrag_X, on 01 June 2010, 07:08, said:

Ignore the last post, i figured out that i forgot to add the constants to the language file.

However. i got everything looking good. it accepts my tracking number links are all there.

BUT. When i click to view it, it does the little "Contacting courier... Please Wait"

and then it shows nothing. i dont even get the "cannot contact the server" or anything. just nothing except the "[X] Close" thing.

I've got my start & grab code set to

$StartGrab = '<html>';
$EndGrab = '</html>';

So it should just show me everything.

Any ideas?

Cheers,
Reece

I've fiddled a bit more and i can now get...

"Couriers Please - EZYTRAK� Tracking results function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0; i0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i "

But that tells me nothing.

Thanks,
Reece

#267 j-variety

  • Community Member
  • 13 posts
  • Real Name:Johnny Ma
  • Gender:Male
  • Location:Los Angeles, CA

Posted 07 August 2010, 10:26

Hello Chris,

I installed the FedEx Module. Once I click on the FedEx Tracking #, I see the following weird message:

Shipment Travel HistoryHelpSelect time zone:Others:All shipment travel activity is displayed in local time for the locationTo display the shipment travel activity in local time of the scan, please select "Local Scan Time" time zone option. Alert: To determine the destination time zone for this shipment please select from the Others list. Alert: To determine the origin time zone for this shipment please select from the Others list.NoentriesfoundDate/TimeActivityLocationDetails
[x] Close

Please help. Thank you.

#268 midijay

  • Community Member
  • 16 posts
  • Real Name:jay

Posted 26 August 2010, 10:21

hi

installed the module 12 dec 2007 no problem and royal mail 1.4 no problem

everything seems to have installed fine, no errors anywhere, can add tracking numbers ok. The email that goes to the customer works and the link in the email to the royal mail site works.

however, within admin and within the customers order area, the spinning ajax_wait.gif does it's thing for a second or two, then all that is left in the results box is " [x] Close "

the tracking number i'm using is RJ575241817GB, but i don't know if the issue is related to the tracking numnber (unlikely), my installation (11am here, see no problem with that), or with the module....perhaps royal mail have changed their website since november 2008 (likely?).

to overcome the issue of modules going out of date when couriers change their site would it be an idea perhaps to opt for the on-site links to just open a new window, rather than try and embed the results. making them a little more future proof.

#269 mafiouso

  • Community Member
  • 141 posts
  • Real Name:mafiouso

Posted 13 September 2010, 20:04

will there or is there any support for the ORDER EDIT contrib. i would be a good options to be able to change or remove the tracking number details.
also is there a way to only keep the data on the admin side

thanks

#270 mafiouso

  • Community Member
  • 141 posts
  • Real Name:mafiouso

Posted 14 September 2010, 05:20

my post service uses the POST method not the GET method can this still work?
and can anyone explain how the "Courier X tracking ID validation REGEXP" works or where i can find the code
thanks

#271 Xpajun

  • Community Member
  • 1,272 posts
  • Real Name:Julian
  • Gender:Male
  • Location:UK

Posted 18 February 2011, 21:12

I have now updated this contribution to work with 2.3 the download can be found at http://addons.oscommerce.com/info/7864

The old "courier" modules will work with this update but need the value '777' changing to '6' in the function install (there is a reminder in the instruction.txt as well)

An updated version of the Royal Mail tracking module is already loaded with the contribution - you will need to download both if you require the RM tracking service.

#272 goring_gap

  • Community Member
  • 112 posts
  • Real Name:Simon
  • Location:UK

Posted 13 July 2011, 12:06

View Postchris23, on 11 April 2008, 23:16, said:

Hi Tony,

$%£"! Royal Mail!

The first one isn't working as there is a bad alt tag in the HTML alt='it's on its way' - note the single quote within single quotes. This is causing strip_tags to choke.

The second one works as it's been delivered and doesn't have the offending alt tag.

To fix this, edit rm_tracking.php

AFTER

// Grab delivery status information and POD data.
	$text = preg_match('/<div class="track-right-box">(.*)<div class="FlexiList( default| null)">/i', $grab_data, $content);


ADD:

	$content[1] = addslashes($content[1]);

This tidies up the HTML sufficiently for strip_tags to clean the rest. I get the feeling I'm going to be chasing my tail with RM ....

HTH

Chris

This did not work for me so I used...

// Grab delivery status information and POD data.
    $text = preg_match('/<div class="track-right-box">(.*)<div class="FlexiList( default| null)">/i', $grab_data, $content);
	
	//$content[1] = addslashes($content[1]);
    $content[1] = str_replace("'", "", $content[1]); //fix for "it's" on RM page - only shows at certain RM stages


#273 DJzz

  • Community Member
  • 5 posts
  • Real Name:Dave

Posted 22 October 2011, 15:20

Hello,

I'm using the Parcelforce Track & Trace v1.1 module and recently it has stopped working, when checking a delivery it says "Contacting courier...please wait" as usual but then just returns an empty box with no tracking info. The shipping IDs work on the Parcelforce website so I'm guessing Parcelforce have changed their track & trace system. Has anyone else experienced the same problem or have a fix?

Thanks

#274 lifeisboost

  • Community Member
  • 82 posts
  • Real Name:Peter

Posted 01 November 2011, 06:47

I am trying to install this and modify it into something i can use. I have done the basic install and installed one module. the problem i am having is on the orders page i get this error. I have replaced the catalog/includes/class file but still no resolve. I do have a module enabled as i can see it in my configuration table.

Warning: constant() [function.constant]: Couldn't find constant TRACKING_MODULE_NAME_ in /var/www/web/includes/classes/tracking_module.php on line 227
Warning: constant() [function.constant]: Couldn't find constant ADMIN_LINK_TITLE_ in /var/www/web/includes/classes/tracking_module.php on line 229


#275 Peper

  • Community Member
  • 343 posts
  • Real Name:Pierre
  • Gender:Male
  • Location:South Africa

Posted 29 November 2011, 11:50

Anyone got this to work correct with SAPO? - SA Post office

#276 Peper

  • Community Member
  • 343 posts
  • Real Name:Pierre
  • Gender:Male
  • Location:South Africa

Posted 29 November 2011, 17:35

View PostPeper, on 29 November 2011, 11:50, said:

Anyone got this to work correct with SAPO? - SA Post office
Added update to contributions.

Just, how to get UHTML emails to send customer tracking number when updating in admin??
Contributions successfully installed : Header tags SEO, Scrolling new products, Customer testimonials, Support tickets, Polls, Link exchange, SPPC, X-sell, Master products, Dhtml menu, Image cache, Slide show, Product videos, Product custom sort, Product notes, Discount coupons, Ask question(review style + admin), CP builder, Customers also purchased, price list, // SEO URLS 5, and forgot the others and then a real admin setup.

#277 jap-spec-performance

  • Community Member
  • 53 posts
  • Real Name:jamie mcarthur

Posted 21 December 2011, 13:04

Right i cant get this to work now, i have installed the base mod havent installed the modules yet as i wanted to make sure the base worked.

but when i goto the orders of any customer the 1054 error shows that tracking_id isnt in my sql even though ive run the command on the database.

i dont use a running for my sql commands as i dont have access to a data base program on the shared server im on.

the actual error i get is

1054 - Unknown column 'tracking_id' in 'field list'

select orders_status_id, date_added, customer_notified, comments, tracking_id from orders_status_history where orders_id = '1065' order by date_added

[TEP STOP]

#278 jap-spec-performance

  • Community Member
  • 53 posts
  • Real Name:jamie mcarthur

Posted 21 December 2011, 13:22

right it seems as though it was the sql command that was causing the issue. think it was the char length

as when i changed to this

ALTER TABLE `orders_status_history` ADD `tracking_id` VARCHAR( 13 ) NOT NULL;

it worked fine.

#279 thom000

  • Community Member
  • 8 posts
  • Real Name:Thomas Sol

Posted 29 March 2012, 09:31

I have a problem with this contri for osc 2.3 everything works great only,
within admin and within the customers order area, the spinning ajax_wait.gif does it's thing for a second or two, then all that is left in the results box is " [x] Close "

Please can someone help me??