-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
I spoke to soon I guess.
It is odd because I did a walk through with a test account and everything seemed to work. The word "Test" showed up in the test accounts view of the invoice and the test email showed the word "Test" in the email.
I then went in and completed a real order for shipment, added the tracking number and saved the order then went in to the front end, with Encrypted Master Password, and checked the customer's account invoice history view of the invoice and the tracking number is not shown. The tracking number is showing up on the updated email sent to the customer though.
.
I have Edit Orders 4.5.5 installed using ZC 1.5.7b. Same issue, HOWEVER, using Edit Orders, I can see the tracking number posted on the admin side. It IS recording the tracking number, and I can post tracking numbers thru Edit Orders. This, for now, is a temporary workaround until a fix can be posted.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
Carbonless
I have Edit Orders 4.5.5 installed using ZC 1.5.7b. Same issue, HOWEVER, using Edit Orders, I can see the tracking number posted on the admin side. It IS recording the tracking number, and I can post tracking numbers thru Edit Orders. This, for now, is a temporary workaround until a fix can be posted.
I am using the same 1.5.7b and 4.5.5 and I am using the generic Responsive template
I can enter the tracking numbers, update and see them without going into edit orders though.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
So, in the modified files are folders called "custom_template". I would think I should rename those to match the template I am using (responsive_classic) but it doesn't say to do that anywhere in the installation instructions. Just want to be sure about this before proceeding. Do I rename those folders also?
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
qtgraphics
So, in the modified files are folders called "custom_template". I would think I should rename those to match the template I am using (responsive_classic) but it doesn't say to do that anywhere in the installation instructions. Just want to be sure about this before proceeding. Do I rename those folders also?
Yes, always rename to match your template.
But you should also create your own custom template folder rather than edit the built-tin responsive_classic. You'll thank me what you do an upgrade which will wipe out all of your customizations if you don't do this.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
qtgraphics
So, in the modified files are folders called "custom_template". I would think I should rename those to match the template I am using (responsive_classic) but it doesn't say to do that anywhere in the installation instructions. Just want to be sure about this before proceeding. Do I rename those folders also?
Try the Clone a Template plugin
HTML Code:
https://www.zen-cart.com/downloads.php?do=file&id=2087
. Be sure to click on admin>Tools>Layout Boxes Controller before trying to clone so all the templates available show.
This plugin is very easy to install and the support thread is informative.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
OK, thanks for clearing that up. And I understand about creating my own template. I was planning to use the Clone Template plugin once everything is setup the way I like it.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
I've just submitted v4.0.0 of Ty Package Tracker for the Zen Cart moderators' review and will post back here when it's available for download.
This is a major restructuring of the plugin (no more core-file overwrites) and it requires a minimum Zen Cart version of 1.5.7. Prior versions of Zen Cart didn't include required notifications from the admin's orders.php module.
This version contains the following changes:
- Updated for use with Zen Cart 1.5.7 and later — no more core-file overwrites!
- Updated for use with Edit Orders, v4.6.0 and later. That version of EO no longer imbeds the TyPT changes.
- Updates the database's orders_status_history table's track_id_n_ entries to use varchar(255) instead of TEXT to conserve database storage requirements.
- Moves the files associated with the plugin's track_orders sidebox to the template_default template.
- The plugin's admin auto-installer is no longer self-deleting.
- The change-basis for the tpl_account_history_info_default.php is the current (as of this writing) version provided by the Zen Cart GitHub repository's v157 branch.
This version also has a new GitHub 'home': https://github.com/lat9/zen_TyPackageTracker
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
I've just submitted v4.0.0 of
Ty Package Tracker for the Zen Cart moderators' review and will post back here when it's available for download.
This is a
major restructuring of the plugin (no more core-file overwrites) and it requires a
minimum Zen Cart version of 1.5.7. Prior versions of Zen Cart didn't include required notifications from the admin's orders.php module.
This version contains the following changes:
- Updated for use with Zen Cart 1.5.7 and later — no more core-file overwrites!
- Updated for use with Edit Orders, v4.6.0 and later. That version of EO no longer imbeds the TyPT changes.
- Updates the database's orders_status_history table's track_id_n_ entries to use varchar(255) instead of TEXT to conserve database storage requirements.
- Moves the files associated with the plugin's track_orders sidebox to the template_default template.
- The plugin's admin auto-installer is no longer self-deleting.
- The change-basis for the tpl_account_history_info_default.php is the current (as of this writing) version provided by the Zen Cart GitHub repository's v157 branch.
This version also has a new GitHub 'home':
https://github.com/lat9/zen_TyPackageTracker
Thanks lat9!
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
[*]The plugin's admin auto-installer is no longer self-deleting.
Great! I need to write a note in the plugin documentation explaining that delete after install cause problems and is really not a good practice.
Thanks for your great work on this plugin!
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
I've just submitted v4.0.0 of
Ty Package Tracker for the Zen Cart moderators' review and will post back here when it's available for download.
This is a
major restructuring of the plugin (no more core-file overwrites) and it requires a
minimum Zen Cart version of 1.5.7. Prior versions of Zen Cart didn't include required notifications from the admin's orders.php module.
This version contains the following changes:
- Updated for use with Zen Cart 1.5.7 and later — no more core-file overwrites!
- Updated for use with Edit Orders, v4.6.0 and later. That version of EO no longer imbeds the TyPT changes.
- Updates the database's orders_status_history table's track_id_n_ entries to use varchar(255) instead of TEXT to conserve database storage requirements.
- Moves the files associated with the plugin's track_orders sidebox to the template_default template.
- The plugin's admin auto-installer is no longer self-deleting.
- The change-basis for the tpl_account_history_info_default.php is the current (as of this writing) version provided by the Zen Cart GitHub repository's v157 branch.
This version also has a new GitHub 'home':
https://github.com/lat9/zen_TyPackageTracker
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=75
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
I've gone thru the install process twice now... both times getting this when trying to log into the admin panel: WARNING: An Error occurred, please refresh the page and try again.If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
I deleted the first install and tried again, same action.
went to the log files and this the log:
('Package Tracking - Carrier 4 Name', 'CARRIER_NAME_4', '', 'Enter name of Carrier 4<br><br><strong>Example:</strong> FedEx, UPS, Canada Post, etc...<br>(default: blank)', 33, 145, now(), NULL, NULL),
('Package Tracking - Carrier 4 Tracking Link', 'CARRIER_LINK_4', '', 'Enter the tracking link of Carrier 4<br><br><strong>Example:</strong> https://www.fedex.com/Tracking?actio...&tracknumbers=', 33, 150, now(), NULL, NULL),
('Package Tracking - Carrier 5 Status', 'CARRIER_STATUS_5', 'False', 'Enable Tracking for Carrier 5<br><br>Set to false if you do NOT want Carrier 5 to be displayed on Admin and Customer page.', 33, 166, now(), NULL, 'zen_cfg_select_option(array(\'True\', \'False\'),'),
('Package Tracking - Carrier 5 Name', 'CARRIER_NAME_5', '', 'Enter name of Carrier 5<br><br><strong>Example:</strong> FedEx, UPS, Canada Post, etc...<br>(default: blank)', 33, 160, now(), NULL, NULL),
('Package Tracking - Carrier 5 Tracking Link', 'CARRIER_LINK_5', '', 'Enter the tracking link of Carrier 5<br><br><strong>Example:</strong> https://www.fedex.com/Tracking?actio...&tracknumbers=', 33, 165, now(), NULL, NULL),
('Max display for Track Order sidebox', 'MAX_DISPLAY_PRODUCTS_IN_TRACK_ORDERS_BOX', '3', 'The maximum number of orders to display on the Track Order sidebox.', 33, 170, now(), NULL, NULL),
('<em>Edit Orders</em> Mode', 'TY_TRACKER', 'False', 'Versions prior to v4.6.0 include the package-tracker handling, but follow-on versions do not. Set this value to <em>True</em> for EO versions < 4.6.0 and <em>False</em> (the default) for EO versions >= 4.6.0.', 33, 175, now(), NULL, 'zen_cfg_select_option(array(\'True\', \'False\'),') ==> (as called by) /home/feadmin/public_html/needtoorderprinting/xxxxx/includes/init_includes/init_typt_config.php on line 89 <== in /home/feadmin/public_html/needtoorderprinting/includes/classes/db/mysql/query_factory.php on line 170.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
Carbonless
I've gone thru the install process twice now... both times getting this when trying to log into the admin panel: WARNING: An Error occurred, please refresh the page and try again.If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Fudge me.... I forgot to uninstall the old tables... disregard. WORKS
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
Carbonless
Fudge me.... I forgot to uninstall the old tables... disregard. WORKS
Which "Old Tables" are you referring to?
I did not see anything about deleting old tables in the instructions, provided or at the GitHub link.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Which "Old Tables" are you referring to?
I did not see anything about deleting old tables in the instructions, provided or at the GitHub link.
I am getting a blank log in page and my error log states:
--> PHP Fatal error: 1062:Duplicate entry 'TY_TRACKER_VERSION' for key 'unq_config_key_zen' :: INSERT INTO configuration
(configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function)
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
I am getting a blank log in page and my error log states:
--> PHP Fatal error: 1062:Duplicate entry 'TY_TRACKER_VERSION' for key 'unq_config_key_zen' :: INSERT INTO configuration
(configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function)
The full error is:
--> PHP Fatal error: 1062:Duplicate entry 'TY_TRACKER_VERSION' for key 'unq_config_key_zen' :: INSERT INTO configuration
(configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function)
VALUES
('Current Ty Package Tracker Version', 'TY_TRACKER_VERSION', '0.0.0', 'Version number.', 73, 0, now(), NULL, 'zen_cfg_select_option(array(\'0.0.0\'),'),
('Package Tracking - Carrier 1 Status', 'CARRIER_STATUS_1', 'True', 'Enable Tracking for Carrier 1<br><br>Set to false if you do NOT want Carrier 1 to be displayed on Admin and Customer page.', 73, 90, now(), NULL, 'zen_cfg_select_option(array(\'True\', \'False\'),'),
('Package Tracking - Carrier 1 Name', 'CARRIER_NAME_1', 'FedEx', 'Enter name of Carrier 1<br><br><strong>Example:</strong> FedEx, UPS, Canada Post, etc...<br>(default: FedEx)', 73, 95, now(), NULL, NULL),
('Package Tracking - Carrier 1 Tracking Link', 'CARRIER_LINK_1', 'https://www.fedex.com/Tracking?action=track&tracknumbers=', 'Enter the tracking link of Carrier 1<br> <br><strong>Example:</strong> https://www.fedex.com/Tracking?actio...&tracknumbers=', 73, 100, now(), NULL, NULL),
('Package Tracking - Carrier 2 Status', 'CARRIER_STATUS_2', 'True', 'Enable Tracking for Carrier 2<br><br>Set to false if you do NOT want Carrier 2 to be displayed on Admin and Customer page.', 73, 105, now(), NULL, 'zen_cfg_select_option(array(\'True\', \'False\'),'),
('Package Tracking - Carrier 2 Name', 'CARRIER_NAME_2', 'UPS', 'Enter name of Carrier 1<br><br><strong>Example:</strong> FedEx, UPS, Canada Post, etc...<br>(default: UPS)', 73, 110, now(), NULL, NULL),
('Package Tracking - Carrier 2 Tracking Link', 'CARRIER_LINK_2', 'https://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&l oc=en_US&InquiryNumber1=', 'Enter the tracking link of Carrier 2<br> <br><strong>Example:</strong> https://www.fedex.com/Tracking?actio...&tracknumbers=', 73, 115, now(), NULL, NULL),
('Package Tracking - Carrier 3 Status', 'CARRIER_STATUS_3', 'True', 'Enable Tracking for Carrier 3<br><br>Set to false if you do NOT want Carrier 3 to be displayed on Admin and Customer page.', 73, 120, now(), NULL, 'zen_cfg_select_option(array(\'True\', \'False\'),'),
('Package Tracking - Carrier 3 Name', 'CARRIER_NAME_3', 'USPS', 'Enter name of Carrier 3<br><br><strong>Example:</strong> FedEx, UPS, Canada Post, etc...<br>(default: USPS)', 73, 125, now(), NULL, NULL),
('Package Tracking - Carrier 3 Tracking Link', 'CARRIER_LINK_3', 'https://tools.usps.com/go/TrackConfirmAction!input.action?tLabels=', 'Enter the tracking link of Carrier 3<br> <br><strong>Example:</strong> https://www.fedex.com/Tracking?actio...&tracknumbers=', 73, 130, now(), NULL, NULL),
('Package Tracking - Carrier 4 Status', 'CARRIER_STATUS_4', 'False', 'Enable Tracking for Carrier 4<br><br>Set to false if you do NOT want Carrier 4 to be displayed on Admin and Customer page.', 73, 140, now(), NULL, 'zen_cfg_select_option(array(\'True\', \'False\'),'),
('Package Tracking - Carrier 4 Name', 'CARRIER_NAME_4', '', 'Enter name of Carrier 4<br><br><strong>Example:</strong> FedEx, UPS, Canada Post, etc...<br>(default: blank)', 73, 145, now(), NULL, NULL),
('Package Tracking - Carrier 4 Tracking Link', 'CARRIER_LINK_4', '', 'Enter the tracking link of Carrier 4<br><br><strong>Example:</strong> https://www.fedex.com/Tracking?actio...&tracknumbers=', 73, 150, now(), NULL, NULL),
('Package Tracking - Carrier 5 Status', 'CARRIER_STATUS_5', 'False', 'Enable Tracking for Carrier 5<br><br>Set to false if you do NOT want Carrier 5 to be displayed on Admin and Customer page.', 73, 166, now(), NULL, 'zen_cfg_select_option(array(\'True\', \'False\'),'),
('Package Tracking - Carrier 5 Name', 'CARRIER_NAME_5', '', 'Enter name of Carrier 5<br><br><strong>Example:</strong> FedEx, UPS, Canada Post, etc...<br>(default: blank)', 73, 160, now(), NULL, NULL),
('Package Tracking - Carrier 5 Tracking Link', 'CARRIER_LINK_5', '', 'Enter the tracking link of Carrier 5<br><br><strong>Example:</strong> https://www.fedex.com/Tracking?actio...&tracknumbers=', 73, 165, now(), NULL, NULL),
('Max display for Track Order sidebox', 'MAX_DISPLAY_PRODUCTS_IN_TRACK_ORDERS_BOX', '3', 'The maximum number of orders to display on the Track Order sidebox.', 73, 170, now(), NULL, NULL),
('<em>Edit Orders</em> Mode', 'TY_TRACKER', 'False', 'Versions prior to v4.6.0 include the package-tracker handling, but follow-on versions do not. Set this value to <em>True</em> for EO versions < 4.6.0 and <em>False</em> (the default) for EO versions >= 4.6.0.', 73, 175, now(), NULL, 'zen_cfg_select_option(array(\'True\', \'False\'),') ==> (as called by) /home2/wildstee/public_html/Zcf294AkrVd6csa550FeF/includes/init_includes/init_typt_config.php on line 89 <== in /home2/wildstee/public_html/includes/classes/db/mysql/query_factory.php on line 170.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
@Carbonless and @wsworx, where did your previous version of TyPT come from? Was it separately installed or was it part of an older Super Orders feature?
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
@Carbonless and @wsworx, where did your previous version of TyPT come from? Was it separately installed or was it part of an older Super Orders feature?
Zen 1.5.7c
PHP 7
edit_orders-4.5.7
encrypted_master_password-2.4.2
usps-USPS_2021_05_05_K11a
Hi Lat9
The package I have been using came from the plugin site.
Early on, I have been using ZenCart for about ten years now, I had SO installed but removed it after they stopped supporting it.
I tried removing the "Duplicate Keys", as stated in the error log, but I still get the same error when I try to install your version of TyP.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Zen 1.5.7c
PHP 7
edit_orders-4.5.7
encrypted_master_password-2.4.2
usps-USPS_2021_05_05_K11a
Hi Lat9
The package I have been using came from the plugin site.
Early on, I have been using ZenCart for about ten years now, I had SO installed but removed it after they stopped supporting it.
I tried removing the "Duplicate Keys", as stated in the error log, but I still get the same error when I try to install your version of TyP.
I'm unclear as to where that plugin site is!
I'll make a modification to the TyPT initial install, since there's obviously something that's not defined that's causing this/these install issues. Check the plugin's GitHub repository (https://github.com/lat9/zen_TyPackageTracker) for the forth-coming update.
Thanks, too, for the donation!
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
I'm unclear as to where that plugin site is!
I'll make a modification to the TyPT initial install, since there's obviously something that's not defined that's causing this/these install issues. Check the plugin's GitHub repository (
https://github.com/lat9/zen_TyPackageTracker) for the forth-coming update.
Thanks, too, for the donation!
That update is now available for pre-release testing on the GitHub repository.
-
1 Attachment(s)
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
That update is now available for pre-release testing on the GitHub repository.
Hi Lat9
I made the changes per GitHub
I am getting a "This Page Isn't Working Right Now" and the below error in my log file when I go to LogIn:
'PHP Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home2/wildstee/public_html/Zcf294AkrVd6csa550FeF/includes/init_includes/init_typt_config.php on line 95'
I looked at the file but I am no coder so I do not know how to fix it.
Attachment 19623
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Hi Lat9
I made the changes per GitHub
I am getting a "This Page Isn't Working Right Now" and the below error in my log file when I go to LogIn:
'PHP Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home2/wildstee/public_html/Zcf294AkrVd6csa550FeF/includes/init_includes/init_typt_config.php on line 95'
I looked at the file but I am no coder so I do not know how to fix it.
Attachment 19623
Okay I figured it out, good old Google.
I added the dollar sign before the word sniffer
if (!$sniffer->field_exists(TABLE_ORDERS_STATUS_HISTORY, 'track_id1')) {
Now everything comes up and I get the " Ty Package Tracker v4.0.1-beta1 has been successfully installed." at the top of the page.
Still testing everything else though
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Okay I figured it out, good old Google.
I added the dollar sign before the word sniffer
if (!$sniffer->field_exists(TABLE_ORDERS_STATUS_HISTORY, 'track_id1')) {
Now everything comes up and I get the " Ty Package Tracker v4.0.1-beta1 has been successfully installed." at the top of the page.
Still testing everything else though
Currently the " Ty Package Tracker v4.0.1-beta1 has been successfully installed." keeps showing up at the top of every page and none of the tracking info is showing up on the order pages or when I enter edit orders and I am no longer getting any DeBug files in my logs folder
-
1 Attachment(s)
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Currently the " Ty Package Tracker v4.0.1-beta1 has been successfully installed." keeps showing up at the top of every page and none of the tracking info is showing up on the order pages or when I enter edit orders and I am no longer getting any DeBug files in my logs folder
This is what I keep seeing now
Attachment 19624
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Okay, I forgot to turn the TyP "Ty Package Tracker Module Switch" on
That is now set to True and I am now seeing the tracking info in "Edit Order" but not in the regular "Order" screen
I am continuing to see the " Ty Package Tracker v4.0.1-beta1 has been successfully installed." header at the top of every page
-
1 Attachment(s)
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Okay, I forgot to turn the TyP "Ty Package Tracker Module Switch" on
That is now set to True and I am now seeing the tracking info in "Edit Order" but not in the regular "Order" screen
I am continuing to see the " Ty Package Tracker v4.0.1-beta1 has been successfully installed." header at the top of every page
In addition to the above, when I click on a link in the Edit Order window it is adding the word "TARGET" to the end of the tracking number when it takes me to the link. In this case it is the USPS page. Of course that then causes USPS to state that no such tracking number exists.
Attachment 19625
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
In addition to the above, when I click on a link in the Edit Order window it is adding the word "TARGET" to the end of the tracking number when it takes me to the link. In this case it is the USPS page. Of course that then causes USPS to state that no such tracking number exists.
Attachment 19625
What version of EO is in use? Note that current (i.e. < v4.6.0) versions of EO still include the TyPT processing.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
In addition to the above, when I click on a link in the Edit Order window it is adding the word "TARGET" to the end of the tracking number when it takes me to the link. In this case it is the USPS page. Of course that then causes USPS to state that no such tracking number exists.
Attachment 19625
Found it (arggh). In /admin/includes/classes/observers/TyPackageAdminObserver.php, towards the end of the file, find
Code:
$this->eo_field_display .= (constant("CARRIER_NAME_$ty") . ': <a href="' . constant("CARRIER_LINK_$ty") . $track_id . ' target="_blank" rel="noreferrer noopener">' . $track_id . '</a> ');
and add the missing closing double-quote:
Code:
$this->eo_field_display .= (constant("CARRIER_NAME_$ty") . ': <a href="' . constant("CARRIER_LINK_$ty") . $track_id . '" target="_blank" rel="noreferrer noopener">' . $track_id . '</a> ');
See also this (https://github.com/lat9/zen_TyPackageTracker/issues/7) GitHub issue for tracking.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Noting, too, that there's a fair amount of cleanup needed when upgrading from a previous version. See this (https://github.com/lat9/zen_TyPackag...ding_to_400.md) documentation for additional information.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
I did all of the cleanup as stated in the link previously so that shouldn't be an issue
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
What version of EO is in use? Note that current (i.e. < v4.6.0) versions of EO still include the TyPT processing.
I have the most recent 4.5.7 available in the plugin section.
Where do I get 4.6.0?
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
Found it (arggh). In /admin/includes/classes/observers/TyPackageAdminObserver.php, towards the end of the file, find
Code:
$this->eo_field_display .= (constant("CARRIER_NAME_$ty") . ': <a href="' . constant("CARRIER_LINK_$ty") . $track_id . ' target="_blank" rel="noreferrer noopener">' . $track_id . '</a>##');
and add the missing closing double-quote:
Code:
$this->eo_field_display .= (constant("CARRIER_NAME_$ty") . ': <a href="' . constant("CARRIER_LINK_$ty") . $track_id . '" target="_blank" rel="noreferrer noopener">' . $track_id . '</a>##');
See also this (
https://github.com/lat9/zen_TyPackageTracker/issues/7) GitHub issue for tracking.
With these corrections do I have to uninstall and install TyP?
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
With these corrections do I have to uninstall and install TyP?
I guess the header answered my question.
"Ty Package Tracker v4.0.1-beta2 has been successfully installed."
It is still showing up continuously on every page
I apologize for my lack of ability.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
Found it (arggh). In /admin/includes/classes/observers/TyPackageAdminObserver.php, towards the end of the file, find
Code:
$this->eo_field_display .= (constant("CARRIER_NAME_$ty") . ': <a href="' . constant("CARRIER_LINK_$ty") . $track_id . ' target="_blank" rel="noreferrer noopener">' . $track_id . '</a>##');
and add the missing closing double-quote:
Code:
$this->eo_field_display .= (constant("CARRIER_NAME_$ty") . ': <a href="' . constant("CARRIER_LINK_$ty") . $track_id . '" target="_blank" rel="noreferrer noopener">' . $track_id . '</a>##');
See also this (
https://github.com/lat9/zen_TyPackageTracker/issues/7) GitHub issue for tracking.
What is confusing is inspection of the html code in Google shows the following:
<a href="https://tools.usps.com/go/TrackConfirmAction!input.action?tLabels=9405528206335492487639 target=" _blank"="">9405528206335492487639</a>
Shouldn't "tLabels=" just be the number?
But I can't figure out how to correct it
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
What is confusing is inspection of the html code in Google shows the following:
<a href="https://tools.usps.com/go/TrackConfirmAction!input.action?tLabels=9405528206335492487639 target=" _blank"="">9405528206335492487639</a>
Shouldn't "tLabels=" just be the number?
But I can't figure out how to correct it
The change I posted on GitHub will modify that link as highlighted
<a href="https://tools.usps.com/go/TrackConfirmAction!input.action?tLabels=9405528206335492487639" target=" _blank"="">9405528206335492487639</a>
-
1 Attachment(s)
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
I guess the header answered my question.
"Ty Package Tracker v4.0.1-beta2 has been successfully installed."
It is still showing up continuously on every page
I apologize for my lack of ability.
So I uploaded all the TyP files again and the header issue is resolved
I do not have an answer for why it resolved itself.
However I am still having the issue of the word "TARGET" being added to the end of tracking number and the link opening the in the same window and not a new tab.
The front end customer view link works perfectly
Attachment 19630
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
So I uploaded all the TyP files again and the header issue is resolved
I do not have an answer for why it resolved itself.
However I am still having the issue of the word "TARGET" being added to the end of tracking number and the link opening the in the same window and not a new tab.
The front end customer view link works perfectly
Attachment 19630
Did you get that update to the /YOUR_ADMIN/includes/classes/observers/TyPackageTrackerAdminObserver.php? That should have corrected that malformed link.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
Did you get that update to the /YOUR_ADMIN/includes/classes/observers/TyPackageTrackerAdminObserver.php? That should have corrected that malformed link.
Yes, I implemented that change but it did not fix it.
I tried making changes to it but any of the changes I made would not reflect on the site when I was using Google developer panel to inspect the code to see if anything was changing or not. For example if I changed the syntax where it was incorrect the page would no longer work but if I changed something like target="_blank" to target="_new" it would not show that as having been changed in the inspection window. It would still show target=" _blank.
It also continues to open the link on the same page and not create a new tab.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
The change I posted on GitHub will modify that link as highlighted
<a href="https://tools.usps.com/go/TrackConfirmAction!input.action?tLabels=9405528206335492487639" target=" _blank"="">9405528206335492487639</a>
This is exactly what is in my file:
Code:
$this->eo_field_display .= (constant("CARRIER_NAME_$ty") . ': <a href="' . constant("CARRIER_LINK_$ty") . $track_id . '" target="_blank" rel="noreferrer noopener">' . $track_id . '</a> ');
-
1 Attachment(s)
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
This is exactly what is in my file:
Code:
$this->eo_field_display .= (constant("CARRIER_NAME_$ty") . ': <a href="' . constant("CARRIER_LINK_$ty") . $track_id . '" target="_blank" rel="noreferrer noopener">' . $track_id . '</a>##');
So nothing I do to the TyP file TyPackageTrackerAdminObserver.php reflects in the inspection window of Google
I completely removed '" target="_blank" rel="noreferrer noopener">' . $track_id . ' from the file but that portion continues to show up in the inspection window of Google
Attachment 19631
Change the syntax of that line and the page quits working but that is the only reaction I can get out of it.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
So nothing I do to the TyP file TyPackageTrackerAdminObserver.php reflects in the inspection window of Google
I completely removed '" target="_blank" rel="noreferrer noopener">' . $track_id . ' from the file but that portion continues to show up in the inspection window of Google
Attachment 19631
Change the syntax of that line and the page quits working but that is the only reaction I can get out of it.
Is this when you view the order in the Customers :: Orders or via Edit Orders itself? Note that versions of EO prior to the forthcoming v4.6.0 included its own version of TyPT.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
Is this when you view the order in the Customers :: Orders or via Edit Orders itself? Note that versions of EO prior to the forthcoming v4.6.0 included its own version of TyPT.
Okay, I have deleted all of TyP that I have and all of EO to start fresh.
I am now getting ready to load your newest version of EO 4.6.0 from the plugin site.
I am reading the section about "Required Notifiers" in the Installation guide and I find that I am missing the "NOTIFY_ADMIN_ORDERS_SHOW_ORDER_DIFFERENCE" in the ADMIN/orders.php file. I have the most recent release of ZC 1.5.7c downloaded and installed but I cannot find that notifier in my site file or in the release file. All other notifiers listed exist.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Okay, I have deleted all of TyP that I have and all of EO to start fresh.
I am now getting ready to load your newest version of EO 4.6.0 from the plugin site.
I am reading the section about "Required Notifiers" in the Installation guide and I find that I am missing the "NOTIFY_ADMIN_ORDERS_SHOW_ORDER_DIFFERENCE" in the ADMIN/orders.php file. I have the most recent release of ZC 1.5.7c downloaded and installed but I cannot find that notifier in my site file or in the release file. All other notifiers listed exist.
Hmm, I show that notification on line 1243 of the "stock" zc157c version of /admin/orders.php.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
Hmm, I show that notification on line 1243 of the "stock" zc157c version of /admin/orders.php.
Losing my mind, apologies.
I have that sorted out now.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Losing my mind, apologies.
I have that sorted out now.
I swear though I had an original 1.5.7c download labeled "zen-cart-v1.5.7c-03052021" and ADMIN/orders did not have that notifier in it.
I downloaded the distro again and this one has it.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
Hmm, I show that notification on line 1243 of the "stock" zc157c version of /admin/orders.php.
Okay, ZC updated, EO 4.6.0 installed and all appears to be working correctly.
Now to tackle TyP again.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Okay, ZC updated, EO 4.6.0 installed and all appears to be working correctly.
Now to tackle TyP again.
I do have one request though.
Can the billing and shipping address locations be swapped on Edit Orders to match ZC Orders?
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
I do have one request though.
Can the billing and shipping address locations be swapped on Edit Orders to match ZC Orders?
Further discussion should be in the Edit Orders support-thread, but the answer is yes ... see the Edit Orders configuration settings.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Nothing like going backwards.....lol
I am back to having the update info showing at the top all the time and now I can't see the tracking info in the Edit Orders or in the Orders
I made all the changes per the GitHub prior to uploading TyP again.
Again the front end is working perfectly. I can see the tracking link and it opens as it should.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Nothing like going backwards.....lol
I am back to having the update info showing at the top all the time and now I can't see the tracking info in the Edit Orders or in the Orders
I made all the changes per the GitHub prior to uploading TyP again.
Again the front end is working perfectly. I can see the tracking link and it opens as it should.
I should add that when I initially log in to Admin the header is not there.
It is not until I go the Orders page that the header appears and then it stays there until I log out.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
I should add that when I initially log in to Admin the header is not there.
It is not until I go the Orders page that the header appears and then it stays there until I log out.
Since you've updated from a previous version of TyPT, did you make sure to remove all the leftovers as identified here: https://github.com/lat9/zen_TyPackag...ing_to_400.md?
Note, too, that you'll need to update the TyPT configuration now that you've got EO 4.6.0 installed to enable the TyPT integration with EO.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
Since you've updated from a previous version of TyPT, did you make sure to remove all the leftovers as identified here:
https://github.com/lat9/zen_TyPackag...ing_to_400.md?
Note, too, that you'll need to update the TyPT configuration now that you've got EO 4.6.0 installed to enable the TyPT integration with EO.
Yes, I had originally gone through and done that process before but I went and double checked again. I did find that I had either missed "/YOUR_ADMIN/includes/functions/extra_functions/common_orders_functions.php" or it was installed again when I reinstalled everything.
I deleted it.
I checked the TyP configuration and it is set up correctly and the "Ty Package Tracker Module Switch" is set to True
-
1 Attachment(s)
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Yes, I had originally gone through and done that process before but I went and double checked again. I did find that I had either missed "/YOUR_ADMIN/includes/functions/extra_functions/common_orders_functions.php" or it was installed again when I reinstalled everything.
I deleted it.
I checked the TyP configuration and it is set up correctly and the "Ty Package Tracker Module Switch" is set to True
This is what I am seeing now:
Attachment 19632
When I first log in it is not there.
After I access Customer:Orders it shows up and stays there
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
This is what I am seeing now:
Attachment 19632
When I first log in it is not there.
After I access Customer:Orders it shows up and stays there
In addition I am now getting log debug files with the following PHP error:
"--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home2/wildstee/public_html/includes/templates/wsworx/sideboxes/tpl_track_orders.php on line 19."
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
In addition I am now getting log debug files with the following PHP error:
"--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home2/wildstee/public_html/includes/templates/wsworx/sideboxes/tpl_track_orders.php on line 19."
Googling indicates that sizeof() is an issue with PHP 7.2 and some developers are recommending count instead of sizeof
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Googling indicates that sizeof() is an issue with PHP 7.2 and some developers are recommending count instead of sizeof
So it appears that I have this issue fixed.
I changed the following code in "includes/templates/YOUR TEMPLATE/sideboxes/tpl_track_orders.php" Line 19
From
if (sizeof($customer_orders)==0) {
To
if (empty($customer_orders)) {
It has stopped the debug log files and the front end is still working correctly
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Here is the EO Debug file contents if it helps at all"
"
getOrderInfo(edit), on exit:
Subtotal: 134.33, Shipping: (not set), Shipping Tax-Rate: (not set), Shipping Tax-Description: (not set), Shipping Tax: (not set), Tax: 0.0000, Total: 148.0800, Tax Groups: {"Tax":0}
$_SESSION['shipping']: (not set)
Order Totals
ot_subtotal. Text: $134.33, Value: 134.3300
ot_shipping. Text: $13.75, Value: 13.7500
ot_total. Text: $148.08, Value: 148.0800
eoInitializeShipping(7932, edit), on entry:
Subtotal: 134.33, Shipping: (not set), Shipping Tax-Rate: (not set), Shipping Tax-Description: (not set), Shipping Tax: (not set), Tax: 0.0000, Total: 148.0800, Tax Groups: {"Tax":0}
$_SESSION['shipping']: (not set)
Order Totals
ot_subtotal. Text: $134.33, Value: 134.3300
ot_shipping. Text: $13.75, Value: 13.7500
ot_total. Text: $148.08, Value: 148.0800
calculateOrderShippingTax returning 0, rate = '0.0000', cost = 13.7500.
eoInitializeShipping(7932, edit), on exit:
Subtotal: 134.33, Shipping: 13.7500, Shipping Tax-Rate: 0.0000, Shipping Tax-Description: (not set), Shipping Tax: 0, Tax: 0.0000, Total: 148.0800, Tax Groups: {"Tax":0}
$_SESSION['shipping']: {"title":"USPS (Priority Mail\u2122 Medium Flat Rate Box)","id":"usps_","cost":"13.7500"}
Order Totals
ot_subtotal. Text: $134.33, Value: 134.3300
ot_shipping. Text: $13.75, Value: 13.7500
ot_total. Text: $148.08, Value: 148.0800
Checking order for virtual status. Order contains 2 unique products, 0 of those are virtual
============================================================
= Creating display of Order Product #33723
============================================================
Product Details:
{"qty":1,"id":"430",
"orders_products_id":"33723",
"name":"VOLTAGE REGULATOR 32 AMP SERIES BLACK COMPUFIRE",
"model":"000-000551-20",
"tax":"0.0000",
"price":"119.7300",
"final_price":"119.7300",
"onetime_charges":"0.0000",
"products_priced_by_attribute":"0",
"product_is_free":"0",
"products_discount_type":"0",
"products_discount_type_from":"0",
"products_weight":"1.13",
"products_virtual":0,"product_is_always_free_shipping":0,"products_quantity_orde r_min":"1",
"products_quantity_order_units":"1",
"products_quantity_order_max":"0",
"products_quantity_mixed":0,"products_mixed_discount_quantity":1}
============================================================
= Creating display of Order Product #33724
============================================================
Product Details:
{"qty":2,"id":"2044",
"orders_products_id":"33724",
"name":"TAPPET SCREEN",
"model":"000-01215-15",
"tax":"0.0000",
"price":"7.3000",
"final_price":"7.3000",
"onetime_charges":"0.0000",
"products_priced_by_attribute":"0",
"product_is_free":"0",
"products_discount_type":"0",
"products_discount_type_from":"0",
"products_weight":"0.0625",
"products_virtual":0,"product_is_always_free_shipping":0,"products_quantity_orde r_min":"1",
"products_quantity_order_units":"1",
"products_quantity_order_max":"0",
"products_quantity_mixed":1,"products_mixed_discount_quantity":1}
Preparing to display status history: {"date_added":{"title":"Date Added",
"show_function":"zen_datetime_short",
"include_field_name":false},"customer_notified":{"title":"Customer Notified",
"show_function":"eo_display_customers_notifications_icon",
"align":"center",
"include_field_name":false},"orders_status_id":{"title":"Status",
"show_function":"built-in"},"comments":{"title":"Comments",
"show_function":"built-in"},"updated_by":{"title":"Updated By",
"align":"center",
"show_function":"built-in"}}
"
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Here is the EO Debug file contents if it helps at all"
"
getOrderInfo(edit), on exit:
Subtotal: 134.33, Shipping: (not set), Shipping Tax-Rate: (not set), Shipping Tax-Description: (not set), Shipping Tax: (not set), Tax: 0.0000, Total: 148.0800, Tax Groups: {"Tax":0}
$_SESSION['shipping']: (not set)
Order Totals
ot_subtotal. Text: $134.33, Value: 134.3300
ot_shipping. Text: $13.75, Value: 13.7500
ot_total. Text: $148.08, Value: 148.0800
eoInitializeShipping(7932, edit), on entry:
Subtotal: 134.33, Shipping: (not set), Shipping Tax-Rate: (not set), Shipping Tax-Description: (not set), Shipping Tax: (not set), Tax: 0.0000, Total: 148.0800, Tax Groups: {"Tax":0}
$_SESSION['shipping']: (not set)
Order Totals
ot_subtotal. Text: $134.33, Value: 134.3300
ot_shipping. Text: $13.75, Value: 13.7500
ot_total. Text: $148.08, Value: 148.0800
calculateOrderShippingTax returning 0, rate = '0.0000', cost = 13.7500.
eoInitializeShipping(7932, edit), on exit:
Subtotal: 134.33, Shipping: 13.7500, Shipping Tax-Rate: 0.0000, Shipping Tax-Description: (not set), Shipping Tax: 0, Tax: 0.0000, Total: 148.0800, Tax Groups: {"Tax":0}
$_SESSION['shipping']: {"title":"USPS (Priority Mail\u2122 Medium Flat Rate Box)","id":"usps_","cost":"13.7500"}
Order Totals
ot_subtotal. Text: $134.33, Value: 134.3300
ot_shipping. Text: $13.75, Value: 13.7500
ot_total. Text: $148.08, Value: 148.0800
Checking order for virtual status. Order contains 2 unique products, 0 of those are virtual
============================================================
= Creating display of Order Product #33723
============================================================
Product Details:
{"qty":1,"id":"430",
"orders_products_id":"33723",
"name":"VOLTAGE REGULATOR 32 AMP SERIES BLACK COMPUFIRE",
"model":"000-000551-20",
"tax":"0.0000",
"price":"119.7300",
"final_price":"119.7300",
"onetime_charges":"0.0000",
"products_priced_by_attribute":"0",
"product_is_free":"0",
"products_discount_type":"0",
"products_discount_type_from":"0",
"products_weight":"1.13",
"products_virtual":0,"product_is_always_free_shipping":0,"products_quantity_orde r_min":"1",
"products_quantity_order_units":"1",
"products_quantity_order_max":"0",
"products_quantity_mixed":0,"products_mixed_discount_quantity":1}
============================================================
= Creating display of Order Product #33724
============================================================
Product Details:
{"qty":2,"id":"2044",
"orders_products_id":"33724",
"name":"TAPPET SCREEN",
"model":"000-01215-15",
"tax":"0.0000",
"price":"7.3000",
"final_price":"7.3000",
"onetime_charges":"0.0000",
"products_priced_by_attribute":"0",
"product_is_free":"0",
"products_discount_type":"0",
"products_discount_type_from":"0",
"products_weight":"0.0625",
"products_virtual":0,"product_is_always_free_shipping":0,"products_quantity_orde r_min":"1",
"products_quantity_order_units":"1",
"products_quantity_order_max":"0",
"products_quantity_mixed":1,"products_mixed_discount_quantity":1}
Preparing to display status history: {"date_added":{"title":"Date Added",
"show_function":"zen_datetime_short",
"include_field_name":false},"customer_notified":{"title":"Customer Notified",
"show_function":"eo_display_customers_notifications_icon",
"align":"center",
"include_field_name":false},"orders_status_id":{"title":"Status",
"show_function":"built-in"},"comments":{"title":"Comments",
"show_function":"built-in"},"updated_by":{"title":"Updated By",
"align":"center",
"show_function":"built-in"}}
"
For troubleshooting the no show of the tracking info
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
So it appears that I have this issue fixed.
I changed the following code in "includes/templates/YOUR TEMPLATE/sideboxes/tpl_track_orders.php" Line 19
From
if (sizeof($customer_orders)==0) {
To
if (empty($customer_orders)) {
It has stopped the debug log files and the front end is still working correctly
So from what I can tell this was a leftover file from a previous TyP install that is not used in the newest version so I have deleted it from my ZC install.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
So am I the only one having the update success label continuously showing at the top of the page and the inability to see the Tracking data in Admin in Customer:Orders or in Edit Orders? Is anyone else out there having these issues?
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Nothing like going backwards.....lol
I am back to having the update info showing at the top all the time and now I can't see the tracking info in the Edit Orders or in the Orders
I made all the changes per the GitHub prior to uploading TyP again.
Again the front end is working perfectly. I can see the tracking link and it opens as it should.
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.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
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
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
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
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted 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
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).
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
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.
-
1 Attachment(s)
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
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.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
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.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
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.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
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']);
}
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
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.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
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.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
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.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted 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.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=75
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
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).
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
can this plug-in work with 1.5.8?
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Please test and let us know.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
swguy
Please test and let us know.
tested.is not working.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Could you be more specific? What isn't working? Are there logs? Blank screen? What's happening.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
blank screen. Not show up on order details.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
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.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
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
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
We are running it under 1.5.7d and it works perfectly.
Thank You Lat9
You're very welcome! I'll be giving it a look in the near-term for zc158/PHP 8.2 compatibility.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
You're very welcome! I'll be giving it a look in the near-term for zc158/PHP 8.2 compatibility.
Hi Lat9
Any word on compatibility with ZC158/PHP 8?
Thank You
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Hi Lat9
Any word on compatibility with ZC158/PHP 8?
Thank You
Nope, but I'll put it on my list of stuff to check. No guaranteed timeframe, though.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
Nope, but I'll put it on my list of stuff to check. No guaranteed timeframe, though.
What would it cost to get it ready for ZC2
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
What would it cost to get it ready for ZC2
After a quick review of the code, I don't see anything that would prohibit v4.0.1's use on zc158/zc200. Give it a whirl and report back any issues.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
After a quick review of the code, I don't see anything that would prohibit v4.0.1's use on zc158/zc200. Give it a whirl and report back any issues.
I have a test shop running of 1.5.8a and it appears TYpackage is throwing this error:
Uncaught Error: Call to undefined function zen_get_category_metatags_keywords() in /admin/category_product_listing.php:733
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
I have a test shop running of 1.5.8a and it appears TYpackage is throwing this error:
Uncaught Error: Call to undefined function zen_get_category_metatags_keywords() in /admin/category_product_listing.php:733
it appears you have the wrong version of this file:
https://github.com/zencart/zencart/b...ct_listing.php
that function is not in that file.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
carlwhat
... and none of the Ty Package Tracker files make use of that function, either.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
v4.1.0 of the package-tracker is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=75
This release supports Zen Cart versions 1.5.8 and later; PHP versions 7.4 and later and contains changes associated with the following GitHub issues:
#9: 'Register' class variable in admin observer for PHP 7.4 and later.
#10: Sync template-override with zc200 version, also supports zc158/zc158a.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
v4.1.0 of the package-tracker is now available for download:
https://www.zen-cart.com/downloads.php?do=file&id=75
This release supports Zen Cart versions 1.5.8 and later; PHP versions 7.4 and later and contains changes associated with the following GitHub issues:
#9: 'Register' class variable in admin observer for PHP 7.4 and later.
#10: Sync template-override with zc200 version, also supports zc158/zc158a.
***we some issue with this plug.
ZC200
MySQL 8.0.32
PHP Version 8.3
**it's give us php warning.
(--> PHP Warning: Constant BOX_CONFIGURATION_TY_PACKAGE_TRACKER already defined in /homepages/29/xxxxx/htdocs/xxxx/myAdmin/includes/languages/english/extra_definitions/ty_package_tracker_admin_definitions.php on line 31.)
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
dsc7050
***we some issue with this plug.
ZC200
MySQL 8.0.32
PHP Version 8.3
**it's give us php warning.
(--> PHP Warning: Constant BOX_CONFIGURATION_TY_PACKAGE_TRACKER already defined in /homepages/29/xxxxx/htdocs/xxxx/myAdmin/includes/languages/english/extra_definitions/ty_package_tracker_admin_definitions.php on line 31.)
Use your admin's Tools :: Developers Tool Kit and search for BOX_CONFIGURATION_TY_PACKAGE_TRACKER in the bottom search form, in "All Files Admin". The only file that defines that constant should be the one you identified (admin/includes/languages/english/extra_definitions/ty_package_tracker_admin_definitions.php).
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Some odd behaviors in Ty 4.1.0 with ZC 2.0.1/PHP8.2:
- The admin/includes/init_includes/init_typt_config.php keeps reporting successful installation on every page load.
- In admin/includes/classes/observers/TyPackageTrackerAdminObserver.php, when the constructor fires, TY_TRACKER_VERSION is not yet defined, so the fields weren't appearing.
I dug in and found that TY_TRACKER_VERSION was created in the database with a trailing space ("TY_TRACKER_VERSION "). Once I fixed that, all was well.
If you have an old database, this might have happened to you too.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
v5.0.0 of Ty Package Tracker is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=75
This version requires Zen Cart 2.1.0 or later for proper operation. For integration with Edit Orders, v5.0.0 or later of EO is required.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Congratulations on shipping a new version of this very important plugin! Great news.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Upgrading 1.5.7d to 2.1.0 using PHP8.3
Older ZC had TY version 4.0.0 and was not encapsulated.
Database update completed.
When I try to use the plugin manager to install the TY 5.0.0, I get the following error at the top of the page.
Code:
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 5.
I missed it at first as the error was scrolled off the top of the page.
I did not see any specific steps suggested in the 5.0.0 readme about removing 4.0.0 but I did notice and earlier thread that mentioned removing old DB tables/fields.
Some testing suggested there might be a stray ',' in four places. The firs of which is line 33 of the ScriptedInstaller.php
Code:
('Package Tracking - Carrier 1 Status', 'CARRIER_STATUS_1', 'True', 'Enable Tracking for Carrier 1<br><br>Set to false if you do NOT want Carrier 1 to be displayed on Admin and Customer page.', $cgi, 90, now(), NULL, 'zen_cfg_select_option([\'True\', \'False\'],'),
When I tried deleting that, I got the same error so, obviously, I am lost once again.
I'm not receiving any display logs and the only log file is from the zcinstall which was just saying it was unable to drop tables that were not there.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
dbltoe
Upgrading 1.5.7d to 2.1.0 using PHP8.3
Older ZC had TY version 4.0.0 and was not encapsulated.
Database update completed.
When I try to use the plugin manager to install the TY 5.0.0, I get the following error at the top of the page.
Code:
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')' at line 5.
I missed it at first as the error was scrolled off the top of the page.
I did not see any specific steps suggested in the 5.0.0 readme about removing 4.0.0 but I did notice and earlier thread that mentioned removing old DB tables/fields.
Some testing suggested there might be a stray ',' in four places. The firs of which is line 33 of the ScriptedInstaller.php
Code:
('Package Tracking - Carrier 1 Status', 'CARRIER_STATUS_1', 'True', 'Enable Tracking for Carrier 1<br><br>Set to false if you do NOT want Carrier 1 to be displayed on Admin and Customer page.', $cgi, 90, now(), NULL, 'zen_cfg_select_option([\'True\', \'False\'],'),
When I tried deleting that, I got the same error so, obviously, I am lost once again.
I'm not receiving any display logs and the only log file is from the zcinstall which was just saying it was unable to drop tables that were not there.
Try making the following change:
https://github.com/lat9/zen_TyPackag...5f1aabadafd97f
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Worked perfect.:flex:
THANX. I normally look for GitHub changes on mods when doing major upgrades but didn't this time.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
v5.0.1 of Ty Package Tracker is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=75
This release corrects these GitHub issues:
#16: Install crashes when upgrading from a previous version.
#19: Update configuration description typos.