If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / 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,867

Results 961 to 980 of 1,020
17 Jun 2021, 2:29 AM
#961
wsworx avatar

wsworx

Zen Follower

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

Post #961 by wsworx

wsworx:

So I activated ZenCarts additional debugging and was able to uncover the following when I am in Customer:Orders and I enter Edit Orders:

[16-Jun-2021 20:03:41 America/Boise] PHP Notice: Constant TABLE_HEADING_TRACKING_ID already defined in /home2//public_html//includes/languages/english/extra_definitions/ty_package_tracker_admin_definitions.php on line 12
[16-Jun-2021 20:03:41 America/Boise] PHP Notice: Constant TABLE_HEADING_CARRIER_NAME already defined in /home2//public_html//includes/languages/english/extra_definitions/ty_package_tracker_admin_definitions.php on line 13
[16-Jun-2021 20:03:41 America/Boise] PHP Notice: Constant ENTRY_ADD_TRACK already defined in /home2//public_html//includes/languages/english/extra_definitions/ty_package_tracker_admin_definitions.php on line 14
[16-Jun-2021 20:03:41 America/Boise] PHP Notice: Constant EMAIL_TEXT_COMMENTS_TRACKING_UPDATE already defined in /home2//public_html//includes/languages/english/extra_definitions/ty_package_tracker_admin_definitions.php on line 15
[16-Jun-2021 20:03:41 America/Boise] PHP Notice: Constant TABLE_HEADING_PRODUCTS_MODEL already defined in /home2//public_html//includes/languages/english.php on line 471

I suspect this is why I cannot see the tracking info in the Edit Orders area.

Here is what I uncovered after searching for the constants.

ADMIN/includes/languages/english/edit_orders.php
and
ADMIN/includes/languages/english/extra_definitions/ty_package_tracker_admin_definitions.php


define('TABLE_HEADING_CARRIER_NAME', 'Carrier');

Defined twice in
ADMIN/includes/languages/english/edit_orders.php
and
ADMIN/includes/languages/english/extra_definitions/ty_package_tracker_admin_definitions.php


define('ENTRY_ADD_TRACK', 'Add Tracking ID');

Defined twice in
ADMIN/includes/languages/english/edit_orders.php
and
ADMIN/includes/languages/english/extra_definitions/ty_package_tracker_admin_definitions.php


define('EMAIL_TEXT_COMMENTS_TRACKING_UPDATE', '<em>Items from your order will be shipping soon!</em>');

Defined twice in
ADMIN/includes/languages/english/edit_orders.php
and
ADMIN/includes/languages/english/extra_definitions/ty_package_tracker_admin_definitions.php


define('TABLE_HEADING_PRODUCTS_MODEL','Model');

Defined twice in
ADMIN/includes/languages/english.php
and
ADMIN/includes/languages/english/edit_orders.php

17 Jun 2021, 4:20 AM
#962
wsworx avatar

wsworx

Zen Follower

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

Post #962 by wsworx

So I gave up, deleted my ZC installation and did a new installation of 1.5.7c.
Installed EO 4.6.0 but now I am getting the following error log when I attempt to access a customer order:

"Request URI: //index.php?cmd=edit_orders&page=1&oID=7952&action=edit,
#1 require(/home2/
/public_html/) called at [/home2//public_html//index.php:11]
--> PHP Warning: Use of undefined constant DISPLAY_PRICE_WITH_TAX_ADMIN - assumed 'DISPLAY_PRICE_WITH_TAX_ADMIN' (this will throw an Error in a future version of PHP) in /home2/
/public_html/******* on line 79.

Request URI: //index.php?cmd=edit_orders&page=1&oID=7952&action=edit, IP address: 107.204.159.118
#1 require(/home2/
/public_html/) called at [/home2//public_html//index.php:11]
--> PHP Warning: Use of undefined constant DISPLAY_PRICE_WITH_TAX - assumed 'DISPLAY_PRICE_WITH_TAX' (this will throw an Error in a future version of PHP) in /home2/
/public_html/******* on line 79.
"

I have looked but I cannot figure out which file these two constants would be defined in.
Can someone assist with this?

Thank You

17 Jun 2021, 12:42 PM
#963
lat9 avatar

lat9

Administrator

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

Post #963 by lat9

wsworx:

So I gave up, deleted my ZC installation and did a new installation of 1.5.7c.
Installed EO 4.6.0 but now I am getting the following error log when I attempt to access a customer order:

"Request URI: //index.php?cmd=edit_orders&page=1&oID=7952&action=edit,
#1 require(/home2/
/public_html/) called at [/home2//public_html//index.php:11]
--> PHP Warning: Use of undefined constant DISPLAY_PRICE_WITH_TAX_ADMIN - assumed 'DISPLAY_PRICE_WITH_TAX_ADMIN' (this will throw an Error in a future version of PHP) in /home2/
/public_html/******* on line 79.

Request URI: //index.php?cmd=edit_orders&page=1&oID=7952&action=edit, IP address: 107.204.159.118
#1 require(/home2/
/public_html/) called at [/home2//public_html//index.php:11]
--> PHP Warning: Use of undefined constant DISPLAY_PRICE_WITH_TAX - assumed 'DISPLAY_PRICE_WITH_TAX' (this will throw an Error in a future version of PHP) in /home2/
/public_html/******* on line 79.
"

I have looked but I cannot figure out which file these two constants would be defined in.
Can someone assist with this?

Thank You
We really, really need to be taking the EO related issues to the EO support thread. Those constants should be database configuration settings (Configuration :: My Store :: Display Prices with Tax and Display Prices with Tax in Admin).

17 Jun 2021, 4:06 PM
#964
wsworx avatar

wsworx

Zen Follower

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

Post #964 by wsworx

lat9:

We really, really need to be taking the EO related issues to the EO support thread. Those constants should be database configuration settings (Configuration :: My Store :: Display Prices with Tax and Display Prices with Tax in Admin).

My apologies, just got frustrated.

19 Jun 2021, 1:06 AM
#965
wsworx avatar

wsworx

Zen Follower

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

Post #965 by wsworx

wsworx:

My apologies, just got frustrated.

Thank you to those who assisted me here during my tantrum.
I do apologize to those attempting to assist me.
So I went through and did some major database cleanup and house cleaning, probably still not enough, deleted EO and TyP completely as well as from the database.
Downloaded both fresh from the ZC plugin pages.
Applied the GitHub changes to TyP.
Installed EO again and got it working correctly.
Installed TyP again and almost got it right.
I found that there is still a TyP section in EO 4.6's ADMIN/Languages/english/edit_orders.php 126-131

// Ty Package Tracker
define('TABLE_HEADING_TRACKING_ID', 'Tracking ID');
define('TABLE_HEADING_CARRIER_NAME', 'Carrier');
define('ENTRY_ADD_TRACK', 'Add Tracking ID');
define('IMAGE_TRACK', 'Add Tracking ID');
define('HEADING_TITLE_ORDER_DETAILS', 'Order # ');

I assume that is not supposed to be there as those definitions are in the TyP package under ADMIN/includes/languages/english/extra_definitions/ty_package_tracker_admin_definitions.php
I was getting an error log about the heading constants for the CUSTOMER:Orders tracking table not being defined.
The table headings were worded like the supposed missing constants.
So I deleted the TyP definitions section in ADMIN/Languages/english/edit_orders.php and poof everything is now working correctly.

Thanks again to those who assisted it is much appreciated.
Now I have to get back to my real job.....lol.

13 Jul 2021, 6:03 PM
#966
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #966 by swguy

Confirming that the issue

--> PHP Fatal error: 1062:Duplicate entry 'TY_TRACKER_VERSION' for key 'unq_config_key_zen' :: INSERT INTO configuration ...

is fixed by the unreleased version in Github but is still present in the version in the Plugins area.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

13 Jul 2021, 6:09 PM
#967
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #967 by swguy

One thing I do notice though is the message

Ty Package Tracker v4.0.1-beta2 has been successfully installed.

seems to never go away.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

13 Jul 2021, 7:39 PM
#968
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #968 by swguy

Is the init script running before the configuration table values are loaded perhaps?

If so you could modify admin/includes/init_includes/init_typt_config.php and switch out

if (!defined('TY_TRACKER_VERSION')) {

for

$query = $db->Execute(
"SELECT *
FROM " . TABLE_CONFIGURATION . "
WHERE configuration_key = 'TY_TRACKER_VERSION'
LIMIT 1"
);
if ($query->EOF) {
...

and then just do the define in an else branch
...

} else {
define('TY_TRACKER_VERSION', $query->fields['configuration_value']);
}

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

14 Jul 2021, 11:14 AM
#969
lat9 avatar

lat9

Administrator

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

Post #969 by lat9

swguy:

Is the init script running before the configuration table values are loaded perhaps?

If so you could switch out

if (!defined('TY_TRACKER_VERSION')) {

for

$query = $db->Execute(
"SELECT *
FROM " . TABLE_CONFIGURATION . "
WHERE configuration_key = 'TY_TRACKER_VERSION'
LIMIT 1"
);
if ($query->EOF) {
...

and then just do the define in an else branch
...

} else {
define('TY_TRACKER_VERSION', $query->fields['configuration_value']);
}
The init script is not running after the configuration settings have been loaded. There's some 'leftover' TyPT code that resurrecting/modifying the now-current version's (er) version.

30 Jul 2021, 12:33 PM
#970
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #970 by swguy

Same site - in ./includes/classes/observers/TyPackageTrackerAdminObserver.php the check
if (defined('TY_TRACKER_VERSION')) {

wasn't passing - had to replace it with if (1). Even thought the value TY_TRACKER_VERSION is in the configuration table.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

24 Aug 2021, 4:26 PM
#971
lat9 avatar

lat9

Administrator

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

Post #971 by lat9

I've just submitted v4.0.1 of Ty Package Tracker for the Zen Cart moderators' review; I'll post back here when it's available for download.

 This release contains changes associated with the following GitHub issues:

#6: Correct bug in initial installation.
#7: Correct 'malformed value' in tracking link.

25 Aug 2021, 4:34 PM
#972
lat9 avatar

lat9

Administrator

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

Post #972 by lat9

lat9:

I've just submitted v4.0.1 of Ty Package Tracker for the Zen Cart moderators' review; I'll post back here when it's available for download.

 This release contains changes associated with the following GitHub issues:

#6: Correct bug in initial installation.
#7: Correct 'malformed value' in tracking link.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=75

24 Sep 2021, 4:28 PM
#973
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #973 by swguy

Looks as though the Fedex link has changed. The new link is

https://www.fedex.com/fedextrack/?trknbr=

You can enter this in Admin > Configuration > Ty Tracker > Package Tracking - Carrier 1 Tracking Link (assuming Carrier 1 is Fedex).

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

9 Dec 2022, 7:18 PM
#974
dsc7050 avatar

dsc7050

New Zenner

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

Post #974 by dsc7050

can this plug-in work with 1.5.8?

9 Dec 2022, 7:24 PM
#975
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #975 by swguy

Please test and let us know.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

9 Dec 2022, 8:38 PM
#976
dsc7050 avatar

dsc7050

New Zenner

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

Post #976 by dsc7050

swguy:

Please test and let us know.

tested.is not working.

9 Dec 2022, 9:12 PM
#977
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,761
Plugin Contributions:
56

Post #977 by swguy

Could you be more specific? What isn't working? Are there logs? Blank screen? What's happening.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

9 Dec 2022, 9:43 PM
#978
dsc7050 avatar

dsc7050

New Zenner

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

Post #978 by dsc7050

blank screen. Not show up on order details.

10 Dec 2022, 12:59 PM
#979
lat9 avatar

lat9

Administrator

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

Post #979 by lat9

dsc7050:

blank screen. Not show up on order details.
If you've got a blank screen, that indicates that a PHP error has been detected and logged. Check the site's /logs directory and post back the contents of the log that indicates the error with Ty-package-tracking, using the "CODE" tags ... that big **# **button in the header bit when you're writing your post.

5 Feb 2023, 9:26 PM
#980
wsworx avatar

wsworx

Zen Follower

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

Post #980 by wsworx

lat9:

If you've got a blank screen, that indicates that a PHP error has been detected and logged. Check the site's /logs directory and post back the contents of the log that indicates the error with Ty-package-tracking, using the "CODE" tags ... that big **# **button in the header bit when you're writing your post.

We are running it under 1.5.7d and it works perfectly.
Thank You Lat9