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 921 to 940 of 1,020
15 Jun 2021, 2:59 AM
#921
wsworx avatar

wsworx

Zen Follower

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

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

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

15 Jun 2021, 3:26 AM
#922
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..

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

15 Jun 2021, 3:28 AM
#923
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..

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

15 Jun 2021, 3:34 AM
#924
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..

wsworx:

This is what I keep seeing now
Attachment 19624

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

15 Jun 2021, 3:37 AM
#925
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..

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

15 Jun 2021, 11:47 AM
#926
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..

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.

15 Jun 2021, 12:40 PM
#927
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..

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

            $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:

            $this->eo_field_display .= (constant("CARRIER_NAME_$ty") . ': <a href="' . constant("CARRIER_LINK_$ty") . $track_id . '[B]"[/B] target="_blank" rel="noreferrer noopener">' . $track_id . '</a> ');

See also this (https://github.com/lat9/zen_TyPackageTracker/issues/7) GitHub issue for tracking.

15 Jun 2021, 4:20 PM
#929
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..

lat9:

Noting, too, that there's a fair amount of cleanup needed when upgrading from a previous version. See this (https://github.com/lat9/zen_TyPackageTracker/blob/master/pages/Upgrading_to_400.md) documentation for additional information.

I did all of the cleanup as stated in the link previously so that shouldn't be an issue

15 Jun 2021, 4:22 PM
#930
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..

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?

15 Jun 2021, 4:38 PM
#931
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..

lat9:

Found it (arggh). In /admin/includes/classes/observers/TyPackageAdminObserver.php, towards the end of the file, find

        $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:
> ```
            $this->eo_field_display .= (constant("CARRIER_NAME_$ty") . ': <a href="' . constant("CARRIER_LINK_$ty") . $track_id . '[B]"[/B] 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?

15 Jun 2021, 4:40 PM
#932
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..

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.

15 Jun 2021, 5:45 PM
#933
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..

lat9:

Found it (arggh). In /admin/includes/classes/observers/TyPackageAdminObserver.php, towards the end of the file, find

        $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:
> ```
            $this->eo_field_display .= (constant("CARRIER_NAME_$ty") . ': <a href="' . constant("CARRIER_LINK_$ty") . $track_id . '[B]"[/B] 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

15 Jun 2021, 6:09 PM
#934
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..

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>

15 Jun 2021, 6:51 PM
#935
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..

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

15 Jun 2021, 7:34 PM
#936
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..

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.

15 Jun 2021, 10:09 PM
#937
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..

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.

15 Jun 2021, 10:15 PM
#938
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..

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:

$this->eo_field_display .= (constant("CARRIER_NAME_$ty") . ': <a href="' . constant("CARRIER_LINK_$ty") . $track_id . '" target="_blank" rel="noreferrer noopener">' . $track_id . '</a> ');
15 Jun 2021, 11:04 PM
#939
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..

wsworx:

This is exactly what is in my file:

$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.
16 Jun 2021, 11:27 AM
#940
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..

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.