-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Hi,
here is the cache:
Code:
[23-jan-2011 13:18:25] PHP Fatal error: Call to undefined function: zen_db_scrub_in() in /homez.25/secretdef/www/site_dreads/galaxy/orders.php on line 89
I changed
Code:
// TY TRACKER 1 BEGIN, DEFINE VALUES ----------------------------------------------
$track_id1 = str_replace(" ", "", zen_db_scrub_in($_POST['track_id1']));
$track_id2 = str_replace(" ", "", zen_db_scrub_in($_POST['track_id2']));
$track_id3 = str_replace(" ", "", zen_db_scrub_in($_POST['track_id3']));
$track_id4 = str_replace(" ", "", zen_db_scrub_in($_POST['track_id4']));
$track_id5 = str_replace(" ", "", zen_db_scrub_in($_POST['track_id5']));
// END TY TRACKER 1 ------------------------------------------------------------------
to:
Code:
// TY TRACKER 1 BEGIN, DEFINE VALUES ----------------------------------------------
$track_id1 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id1']));
$track_id2 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id2']));
$track_id3 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id3']));
$track_id4 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id4']));
$track_id5 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id5']));
// END TY TRACKER 1 ------------------------------------------------------------------
Now seems to work fine...
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Ohh man u saved my website :), with ur answer i resolved the problem i had .
but i still need one last thing.
i need the canapost tracking link to put it in the configuration settings.
could anyone help me. ???
Thanks everyone.
Quote:
Originally Posted by
spacecowboy
Hi,
here is the cache:
Code:
[23-jan-2011 13:18:25] PHP Fatal error: Call to undefined function: zen_db_scrub_in() in /homez.25/secretdef/www/site_dreads/galaxy/orders.php on line 89
I changed
Code:
// TY TRACKER 1 BEGIN, DEFINE VALUES ----------------------------------------------
$track_id1 = str_replace(" ", "", zen_db_scrub_in($_POST['track_id1']));
$track_id2 = str_replace(" ", "", zen_db_scrub_in($_POST['track_id2']));
$track_id3 = str_replace(" ", "", zen_db_scrub_in($_POST['track_id3']));
$track_id4 = str_replace(" ", "", zen_db_scrub_in($_POST['track_id4']));
$track_id5 = str_replace(" ", "", zen_db_scrub_in($_POST['track_id5']));
// END TY TRACKER 1 ------------------------------------------------------------------
to:
Code:
// TY TRACKER 1 BEGIN, DEFINE VALUES ----------------------------------------------
$track_id1 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id1']));
$track_id2 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id2']));
$track_id3 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id3']));
$track_id4 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id4']));
$track_id5 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id5']));
// END TY TRACKER 1 ------------------------------------------------------------------
Now seems to work fine...
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
If you would read through the support thread BEFORE posting questions, you would have seen that the solution to this issue was posted already with the corrected file..
http://www.zen-cart.com/forum/showth...=36126&page=44
Quote:
Originally Posted by
spacecowboy
Hi,
here is the cache:
Code:
[23-jan-2011 13:18:25] PHP Fatal error: Call to undefined function: zen_db_scrub_in() in /homez.25/secretdef/www/site_dreads/galaxy/orders.php on line 89
I changed
Code:
// TY TRACKER 1 BEGIN, DEFINE VALUES ----------------------------------------------
$track_id1 = str_replace(" ", "", zen_db_scrub_in($_POST['track_id1']));
$track_id2 = str_replace(" ", "", zen_db_scrub_in($_POST['track_id2']));
$track_id3 = str_replace(" ", "", zen_db_scrub_in($_POST['track_id3']));
$track_id4 = str_replace(" ", "", zen_db_scrub_in($_POST['track_id4']));
$track_id5 = str_replace(" ", "", zen_db_scrub_in($_POST['track_id5']));
// END TY TRACKER 1 ------------------------------------------------------------------
to:
Code:
// TY TRACKER 1 BEGIN, DEFINE VALUES ----------------------------------------------
$track_id1 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id1']));
$track_id2 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id2']));
$track_id3 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id3']));
$track_id4 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id4']));
$track_id5 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id5']));
// END TY TRACKER 1 ------------------------------------------------------------------
Now seems to work fine...
Quote:
Originally Posted by
alzoubei
Ohh man u saved my website :), with ur answer i resolved the problem i had .
but i still need one last thing.
i need the canapost tracking link to put it in the configuration settings.
could anyone help me. ???
Thanks everyone.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Does anyone know if there's a way to set up this mod to auto update with a cronjob?
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
joyjoy
Does anyone know if there's a way to set up this mod to auto update with a cronjob?
What would you be looking to auto update??
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
The tracking status? Sounds like you'd need a mega brain to figure that out...or if it's even possible. But since you're so brilliant, I figure I'd ask. :smile:
I was wondering if it could be set up the way that the update currency is set up. It runs on a cronjob to your settings and updates with the information it retreives.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
joyjoy
The tracking status? Sounds like you'd need a mega brain to figure that out...or if it's even possible. But since you're so brilliant, I figure I'd ask. :smile:
I was wondering if it could be set up the way that the update currency is set up. It runs on a cronjob to your settings and updates with the information it retreives.
I'm still not sure I understand what you are trying to automate or HOW it's related to this module. With regards to this module, the ONLY way that the tracking data is updated is if you explicitly enter it.. You can't automate the manual entry of tracking data.. Automation of tracking data requires that the tracking data is grabbed from an external source automatically and stored in the DB which would allow this module to grab the tracking data and apply it to a specific order..
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
The 2nd part there was right.
I was just wondering if there is any way that this mod could be set up to retreive information from external source automatically and store it in the DB which would allow this module to grab the tracking data and apply it to a specific order.
Thank you.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
joyjoy
The 2nd part there was right.
I was just wondering if there is any way that this mod could be set up to retreive information from external source automatically and store it in the DB which would allow this module to grab the tracking data and apply it to a specific order.
Thank you.
I'm sure it could be done with LOTS AND LOTS of custom programming to the various supported shipping modules to retrieve and store this information (assuming of course that this information is stored in an accessible source and the shipping carriers provide a means to query and retrieve this this data)
I have no plans to add that level of functionality into this module.. Too many unknowns in terms of feasibility, too many dependent requirements that would/could break if the carriers API's changed, and to do this right it would really need to be done to support three carriers with differing API's (the method used to executed this for one carrier may not apply to the next, and/or this functionality may not be support by all carriers)..
Too complex to make it a worthwhile adventure to take on for a FREE module IMHO.. If you really want this capability, you should investigate paying a developer to create the custom code needed for the carrier's your store supports..
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Okay, I'm not too familiar with this stuff but I assumed it would be a complicated task. I was just curious.
Thank you!