If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Track Package from FedEx, UPS, Postal, DHL, etc..

Track Package from FedEx, UPS, Postal, DHL, etc..

Started by colosports on 19 May 2006, 6:05 AM · Views: 290,851

Results 861 to 880 of 1,020
30 Jan 2019, 6:12 PM
#861
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Track Package from FedEx, UPS, Postal, DHL, etc..

echexxxxxxxx10:

Did customers get a status update emails prior to installing this?

You never answered my other question. Of course, check spam folders too.

Jim
Wheaton Website Services

31 Jan 2019, 3:44 PM
#862
echexxxxxxxx10 avatar

echexxxxxxxx10

New Zenner

Join Date:
Feb 2010
Posts:
58
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

jeking:

You never answered my other question. Of course, check spam folders too.

Now it works correctly, I had to change the settings for how to send emails. thank you very much for helping

28 Feb 2019, 6:58 PM
#863
panzc2020 avatar

panzc2020

New Zenner

Join Date:
May 2014
Posts:
68
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

Despite I downloaded Ty Package Tracker Version 3.1.6.
After I installed, it still gave me notification that Ty Package Tracker Version 3.1.5 installed successfully.

I wonder if this just just numbering error?
(Yes, I installed on ZC 1.5.6a).

28 Feb 2019, 8:45 PM
#864
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

PanZC2020:

Despite I downloaded Ty Package Tracker Version 3.1.6.
After I installed, it still gave me notification that Ty Package Tracker Version 3.1.5 installed successfully.

I wonder if this just just numbering error?
(Yes, I installed on ZC 1.5.6a).

Yes, just a numbering error. I missed updating the version number. I'll catch it next release.

Jim
Wheaton Website Services

8 Mar 2019, 3:20 PM
#865
dsc7050 avatar

dsc7050

New Zenner

Join Date:
Sep 2018
Location:
UUSA
Posts:
44
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

recently we have this issue with this plug in.

ZC 1.5.6a
Ty Package Tracker Version 3.1.6.

Here is the Logs:
[08-Mar-2019 09:22:44 America/New_York] Request URI: /index.php?main_page=down_for_maintenance, IP address: 40.77.167.20
#1 sizeof() called at [/homepages/29/xxxxx/htdocs/DIY2019/includes/templates/template_default/sideboxes/tpl_track_orders.php:19]
#2 require(/homepages/29/xxxxx/htdocs/DIY2019/includes/templates/template_default/sideboxes/tpl_track_orders.php) called at [/homepages/29/xxxxx/htdocs/DIY2019/includes/modules/sideboxes/track_orders.php:55]
#3 require(/homepages/29/xxxxx/htdocs/DIY2019/includes/modules/sideboxes/track_orders.php) called at [/homepages/29/xxxxx/htdocs/DIY2019/includes/modules/column_right.php:32]
#4 require(/homepages/29/xxxxx/htdocs/DIY2019/includes/modules/column_right.php) called at [/homepages/29/xxxxx/htdocs/DIY2019/includes/templates/responsive_classic/common/tpl_main_page.php:200]
#5 require(/homepages/29/xxxxx/htdocs/DIY2019/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/homepages/29/xxxxx/htdocs/DIY2019/index.php:97]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /homepages/29/xxxxx/htdocs/DIY2019/includes/templates/template_default/sideboxes/tpl_track_orders.php on line 19.

8 Mar 2019, 3:41 PM
#866
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

dsc7050:

recently we have this issue with this plug in.

ZC 1.5.6a
Ty Package Tracker Version 3.1.6.

Here is the Logs:
[08-Mar-2019 09:22:44 America/New_York] Request URI: /index.php?main_page=down_for_maintenance, IP address: 40.77.167.20
#1 sizeof() called at [/homepages/29/xxxxx/htdocs/DIY2019/includes/templates/template_default/sideboxes/tpl_track_orders.php:19]
#2 require(/homepages/29/xxxxx/htdocs/DIY2019/includes/templates/template_default/sideboxes/tpl_track_orders.php) called at [/homepages/29/xxxxx/htdocs/DIY2019/includes/modules/sideboxes/track_orders.php:55]
#3 require(/homepages/29/xxxxx/htdocs/DIY2019/includes/modules/sideboxes/track_orders.php) called at [/homepages/29/xxxxx/htdocs/DIY2019/includes/modules/column_right.php:32]
#4 require(/homepages/29/xxxxx/htdocs/DIY2019/includes/modules/column_right.php) called at [/homepages/29/xxxxx/htdocs/DIY2019/includes/templates/responsive_classic/common/tpl_main_page.php:200]
#5 require(/homepages/29/xxxxx/htdocs/DIY2019/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/homepages/29/xxxxx/htdocs/DIY2019/index.php:97]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /homepages/29/xxxxx/htdocs/DIY2019/includes/templates/template_default/sideboxes/tpl_track_orders.php on line 19.

What PHP version?
Is this just an error in the logs or also on the front-end?

Jim
Wheaton Website Services

8 Mar 2019, 3:44 PM
#867
dsc7050 avatar

dsc7050

New Zenner

Join Date:
Sep 2018
Location:
UUSA
Posts:
44
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

jeking:

What PHP version?
Is this just an error in the logs or also on the front-end?

PHP Version 7.2.15
just in the logs folder..Front-end no problem.

8 Mar 2019, 3:59 PM
#868
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

In includes/templates/template_default/sideboxes/tpl_track_orders.php

replace line 19 ```
if (sizeof($customer_orders)==0) {


with ```
if (is_array($customer_orders) && (sizeof($customer_orders)==0) {

I have not tested this so keep a backup of the original file and test the results after the change.

Jim
Wheaton Website Services

8 Mar 2019, 4:28 PM
#869
dsc7050 avatar

dsc7050

New Zenner

Join Date:
Sep 2018
Location:
UUSA
Posts:
44
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

jeking:

In includes/templates/template_default/sideboxes/tpl_track_orders.php

replace line 19 ```
if (sizeof($customer_orders)==0) {

> 
> with ```
if (is_array($customer_orders) && (sizeof($customer_orders)==0) {

I have not tested this so keep a backup of the original file and test the results after the change.

Thanks..once i change the code, it's stop show error on the logs folder, but on the Front-end not showing up the (Track order), also i check the layout box controller, the tracking_order.php Left/Right column status is ON, single Column status: ON.

8 Mar 2019, 4:32 PM
#870
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

dsc7050:

Thanks..once i change the code, it's stop show error on the logs folder, but on the Front-end not showing up the (Track order), also i check the layout box controller, the tracking_order.php Left/Right column status is ON, single Column status: ON.

Ok, revert to the old file and I'll take a look as soon as I can.

Jim
Wheaton Website Services

8 Mar 2019, 5:20 PM
#871
dsc7050 avatar

dsc7050

New Zenner

Join Date:
Sep 2018
Location:
UUSA
Posts:
44
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

jeking:

Ok, revert to the old file and I'll take a look as soon as I can.

Thank you..

11 Mar 2019, 1:43 PM
#872
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

Change line 19 to be:

  if (@sizeof($customer_orders)==0) { 

This was tested so should solve the issue.

Jim
Wheaton Website Services

11 Mar 2019, 2:12 PM
#873
dsc7050 avatar

dsc7050

New Zenner

Join Date:
Sep 2018
Location:
UUSA
Posts:
44
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

thank you so much!! its work.

19 Aug 2019, 12:41 PM
#874
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

I need the tracking input fields shown in orders.php to remove spaces from the input before putting them into the db, on an older version of ty track I had this code in orders.php that would do the job.

// BEGIN TY TRACKER 1 - 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']));
        $track_id6 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id6']));
        $track_id7 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id7']));
// END TY TRACKER 1 - DEFINE VALUES ------------------------------------------------------------------

I can't find or figure out a place to put a str_replace to do the job on the latest version.

I've found the similar code in edit_orders that uses an array and I've modified that to do what I need, but the orders.php code is different, any help greatly received.

20 Aug 2019, 12:32 PM
#875
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

DigitalShadow:

I need the tracking input fields to remove spaces from the input before putting them into the db.

Edit includes/functions/functions_osh_update.php

find

            // Begin Ty Package Tracker       
            foreach($track_id as $id => $track) {
                $osh_sql['track_id' . $id] = zen_db_input($track);
            }

replace with

            // Begin Ty Package Tracker       
            foreach($track_id as $id => $track) {
                $osh_sql['track_id' . $id] = str_replace(" ", "", zen_db_input($track));
            }
25 Oct 2020, 12:07 AM
#876
wsworx avatar

wsworx

Zen Follower

Join Date:
Jun 2012
Location:
California
Posts:
260
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

I loaded this plug in in 1.5.7 and it appears the only error I keep getting is:

PHP Warning: Invalid argument supplied for foreach() in ///public_html/****/includes/functions/functions_osh_update.php on line 206.

Can you supply a fix for this issue?

Thank You

1 Nov 2020, 5:50 PM
#877
wsworx avatar

wsworx

Zen Follower

Join Date:
Jun 2012
Location:
California
Posts:
260
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

1.5.7a
PHP 7.4
Attachment 19266

I have Package tracker running in 1.5.7a but I am getting a PHP error stating:

PHP Warning: Invalid argument supplied for foreach() in /home2/***/public_html/ZC157/includes/functions/functions_osh_update.php on line 206.

While there were a few other issues that were easy to resolve in functions_osh_update it appears to be this portion of code below causing the issue:

            // Begin Ty Package Tracker       
            foreach($track_id as $id => $track) {
                $osh_sql['track_id' . $id] = zen_db_input($track);
            }

Will the edit to trackid below resolve this error:

            // Begin Ty Package Tracker       
            foreach('track_id' as $id => $track) {
                $osh_sql['track_id' . $id] = str_replace(" ", "", zen_db_input($track));
            }

Thank You for any assistance it is greatly appreciated

2 Nov 2020, 3:18 PM
#878
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

wsworx:

Will the edit to trackid below resolve this error:

        // Begin Ty Package Tracker       
        foreach([B]'track_id'[/B] as $id => $track) {
            $osh_sql['track_id' . $id] = str_replace(" ", "", zen_db_input($track));
        }

**NO!**

try:
```php
           // Begin Ty Package Tracker       
           if (is_array($track_id) {
            foreach($track_id as $id => $track) {
                $osh_sql['track_id' . $id] = zen_db_input($track);
            }
           }

you can still do that str_replace if so inclined...

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

4 Nov 2020, 7:43 PM
#879
wsworx avatar

wsworx

Zen Follower

Join Date:
Jun 2012
Location:
California
Posts:
260
Plugin Contributions:
0

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

carlwhat:

NO!

try:

       // Begin Ty Package Tracker       
       if (is_array($track_id) {
        foreach($track_id as $id => $track) {
            $osh_sql['track_id' . $id] = zen_db_input($track);
        }
       }
> 
> you can still do that str_replace if so inclined...
> 
> best.

That edit broke the entire web site and caused the below error:

\[code]
[04-Nov-2020 19:41:01 UTC] PHP Parse error:  syntax error, unexpected 'foreach' (T_FOREACH) in /home2/***/public_html/ZC157/includes/functions/functions_osh_update.php on line 207

[04-Nov-2020 19:41:01 UTC] Request URI: /ZC157/***/index.php?cmd=login, IP address: ***
--> PHP Parse error: syntax error, unexpected 'foreach' (T_FOREACH) in /home2/***/public_html/ZC157/includes/functions/functions_osh_update.php on line 207.
4 Nov 2020, 7:51 PM
#880
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Track Package from FedEx, UPS, Postal, DHL, etc..

Missing a right-paren:

           // Begin Ty Package Tracker       
           if (is_array($track_id)[B])[/B] {
            foreach($track_id as $id => $track) {
                $osh_sql['track_id' . $id] = zen_db_input($track);
            }
           }