-
Re: Ty Package Tracker v3.1.4
.......................
Quote:
Originally Posted by
dendelcruz
Hello.
I will install this plugin on zen cart 1.5.4. I have questions regarding admin/orders.php
1) is the file from the plugin based from the 1.5.4 version of orders.php? Comparing using winmerge, i can see that there are differences in the location of some lines of html code not related to the plugin's specific code edits. There are also differences in html structure like some use a <div> in the plugin file but not in the 1.5.4 file. Are these changes created intentionally for the plugin or are they from a previous version of orders.php?
Yep...
2) are all ty package tracker edits labeled inside the file because there are some unlabeled codes that are not present in the 1.5.4 file. I'm not sure if I need to copy those parts to the 1.5.4 file.
3) if i don't have previous edits done on the 1.5.4 file, is it ok to just overwrite the whole file with the plugin's own version?
Yep... Says so in the readme too..
By the way, i'm not using super orders or edit orders plugins.
Hope someone can guide me. Thanks
-
Re: Ty Package Tracker v3.1.4
-
Re: Ty Package Tracker v3.1.4
Is there a way instead of having to enter each tracking number within the admin orders screen to simply upload a CSV file with order id, carrier and tracking number so it can populate a butch of orders at once?
Also a selectable option not to email customers tracking data when CSV data is imported since my website already emails this data, I'm just looking for a way to populate the tracking data and have it available for customers in the order history section.
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
marcopolo
Is there a way instead of having to enter each tracking number within the admin orders screen to simply upload a CSV file with order id, carrier and tracking number so it can populate a butch of orders at once?
Also a selectable option not to email customers tracking data when CSV data is imported since my website already emails this data, I'm just looking for a way to populate the tracking data and have it available for customers in the order history section.
If someone were to write a script to process the CSV file, yes. As it stands now, this function does not exist. It's crossed my mind, but never got around to doing it.
-
Re: Ty Package Tracker v3.1.4
It would be nice especially for sites that process many orders. I would suggest having both an upload file option and a more automated solution whereas a the csv file is written to a server directory then have another script look at that directory for a file and process it automatically using a cron job. That way you can setup and forgot about it and the process will be fully automated.
-
Re: Ty Package Tracker v3.1.4
Can't find the download in the official plug-ins area under shipping. Did it ever get accepted and uploaded??
Quote:
Originally Posted by
DivaVocals
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
ronlee67
Can't find the download in the official plug-ins area under shipping. Did it ever get accepted and uploaded??
it's here : https://www.zen-cart.com/downloads.php?do=file&id=75
-
Re: Ty Package Tracker v3.1.4
Thank you
Quote:
Originally Posted by
Design75
-
Re: Ty Package Tracker v3.1.4
Hi guys!
I finally had the courage to do an upgrade on a clean 1.54 install www.gelcandlecompany.com
I have the following modules successfully installed........Blue Sheffield Responsive Template, Sitemap XML and Ultimate URLS
after installing tracker I noticed in my admin on an Order above my Date purchased appears *Fix stock Zen Cart HTML (missing closing tag)*/
I was able to enter tracking info but on the customers side tracking is not being displayed with a link like it used to under Status History & Comments.
Thanks
-
Re: Ty Package Tracker v3.1.4
Now I am wondering if it's in the email only and not under customers order history.
Is that right? If so, I just have a space issue and I also noticed that my Search fields on the left and my Order Id field on the right.
Is that also displayed correctly?
thanks
-
Re: Ty Package Tracker v3.1.4
I have searched this thread but was unable to find the same issue, line break error in comments.
I just upgraded to ZC1.55 and added Ty Package Tracker as that is what I had in ZC1.54. After installing Ty package Tracker, I get line breaks that look like this (\r\n\r\n) but they only show up in the admin side of the comments but not on the email side. Of course when I print the order after adding comments it shows the line breaks, see example below.
Your order has shipped via 2 Day Priority Mail\r\n\r\nThank You for Your Business!\r\n\r\nMark\r\n\r\nIF YOU HAVE QUESTIONS, CONCERNS OR COMMENTS \r\nABOUT YOUR ORDER, PLEASE SEND US AN EMAIL \r\n\r\n or CALL TOLL FREE MESSAGE CENTER 888-912-0099
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
zacm
I have searched this thread but was unable to find the same issue, line break error in comments.
I just upgraded to ZC1.55 and added Ty Package Tracker as that is what I had in ZC1.54. After installing Ty package Tracker, I get line breaks that look like this (\r\n\r\n) but they only show up in the admin side of the comments but not on the email side. Of course when I print the order after adding comments it shows the line breaks, see example below.
Your order has shipped via 2 Day Priority Mail\r\n\r\nThank You for Your Business!\r\n\r\nMark\r\n\r\nIF YOU HAVE QUESTIONS, CONCERNS OR COMMENTS \r\nABOUT YOUR ORDER, PLEASE SEND US AN EMAIL \r\n\r\n or CALL TOLL FREE MESSAGE CENTER 888-912-0099
Did this problem occur prior to upgrading to Zen Cart 1.5.5?
What version of Zen Cart and Ty Package Tracker were you using previously?
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
jeking
Did this problem occur prior to upgrading to Zen Cart 1.5.5?
What version of Zen Cart and Ty Package Tracker were you using previously?
Yes, and I was using ZC 1.5.4 but I do not recall what version of TY I was using at the time, I do recall this happening last time, but for the life of me I cannot recall what was done to correct it.
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
zacm
Yes, and I was using ZC 1.5.4 but I do not recall what version of TY I was using at the time, I do recall this happening last time, but for the life of me I cannot recall what was done to correct it.
I found and fixed the cause. This is still a BETA version for Zen Cart 1.5.5. If you'd like to test it, I can get it to you. PM me.
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
jeking
I found and fixed the cause. This is still a BETA version for Zen Cart 1.5.5. If you'd like to test it, I can get it to you. PM me.
Thanks again for your help, this fixed both issues I was having.
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
zacm
Thanks again for your help, this fixed both issues I was having.
Thanks for posting the results back.
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
spawnie69
Hi guys!
after installing tracker I noticed in my admin on an Order above my Date purchased appears *Fix stock Zen Cart HTML (missing closing tag)*/
Thanks
Just upgraded on my test site and noticed the same thing but only on orders that uses credit cards as a payment method. Paypal orders do not have the Fix stock Zen Cart HTML (missing closing tag) on them.
Was there a fix for this?
Using ZC 1.5.4 and TyPackageTracker-3.1.4a
Thanks
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
n8pbm
Just upgraded on my test site and noticed the same thing but only on orders that uses credit cards as a payment method. Paypal orders do not have the Fix stock Zen Cart HTML (missing closing tag) on them.
Was there a fix for this?
Using ZC 1.5.4 and TyPackageTracker-3.1.4a
Thanks
Check you PM
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
n8pbm
Just upgraded on my test site and noticed the same thing but only on orders that uses credit cards as a payment method. Paypal orders do not have the Fix stock Zen Cart HTML (missing closing tag) on them.
Was there a fix for this?
Using ZC 1.5.4 and TyPackageTracker-3.1.4a
Thanks
I'd suggest double checking your installation. I have not seen this on any ZC 1.5.4 site using this.
-
Re: Ty Package Tracker v3.1.4
It only shows up in any orders that was paid with a Credit Card (Linkpoint) Paypal payments do not have the /*Fix stock Zen Cart HTML (missing closing tag)*/ in the orders.. I also noticed that the Credit Card orders has the invoice, Packing Slip and Orders button shifted to the left on the bottom and Paypal orders are shifted to the right.
Everything functions and tracking information is sent to the customers. I may upgrade to 1.5.5 so maybe this issue will go away.
Thanks
Mike
-
Re: Ty Package Tracker v3.1.4
Could anyone help me please?
My zencart 1.5.4, I've installed
Edit orders4.1.5
Admin new order 141
Everything is good and no problem. And then I installed TyPackageTracker-3.1.4a. I overwrite all files.
I found that I cannot edit the Customers address, Bill address, Delivery address, payment method, email address of customers, telephone no., Qty, product, Model, tax, price(ex) or price(in),,etc All I was able to edit them before installing TyPackageTracker-3.1.4a.
I'm not sure whether I should merge some files before installing.
Thanks very much in advance!
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
jay2015
Could anyone help me please?
My zencart 1.5.4, I've installed
Edit orders4.1.5
Admin new order 141
Everything is good and no problem. And then I installed TyPackageTracker-3.1.4a. I overwrite all files.
I found that I cannot edit the Customers address, Bill address, Delivery address, payment method, email address of customers, telephone no., Qty, product, Model, tax, price(ex) or price(in),,etc All I was able to edit them before installing TyPackageTracker-3.1.4a.
I'm not sure whether I should merge some files before installing.
Thanks very much in advance!
This plugins shares files with the other plugins you've installed. By overwriting instead of merging, you've wiped out the customizations those plugins need. You *must* merge the Ty Package Tracker files.
-
1 Attachment(s)
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
jeking
This plugins shares files with the other plugins you've installed. By overwriting instead of merging, you've wiped out the customizations those plugins need. You *must* merge the Ty Package Tracker files.
Thanks your response!
By comparing Edit order and Ty Package tracker, I found the main different file is Admin/orders.php. There are many places different (from start to end). I really do not have enough PHP knowledge to merge them. Do you have any suggestion to me how to merge those lines in this file? Thanks!
Attachment 16554
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
jay2015
Thanks your response!
By comparing Edit order and Ty Package tracker, I found the main different file is Admin/orders.php. There are many places different (from start to end). I really do not have enough PHP knowledge to merge them. Do you have any suggestion to me how to merge those lines in this file? Thanks!
Attachment 16554
If it's outside your skill set, sounds like you need to hire someone. Performing a merge of two plugins it outside the scope of the free support on this forum.
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
jeking
If it's outside your skill set, sounds like you need to hire someone. Performing a merge of two plugins it outside the scope of the free support on this forum.
yeah, you are right.
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
jeking
I found and fixed the cause. This is still a BETA version for Zen Cart 1.5.5. If you'd like to test it, I can get it to you. PM me.
Hi. Has this version completed beta testing? It looks like the latest version for download supports up to 1.54?
I am keen to try out for 1.55.
Thanks
-
Re: Ty Package Tracker v3.1.4
PM me your email address and I'll get it to you. No bugs have been reported with it. Just haven't gotten around to submitting it. Honestly, I forgot about it.
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
jeking
PM me your email address and I'll get it to you. No bugs have been reported with it. Just haven't gotten around to submitting it. Honestly, I forgot about it.
@jeking Thanks very much for providing this. Confirming it looks to be working well for us on 1.55b. Much appreciated :)
-
Re: Ty Package Tracker v3.1.4
@nutbugs Thanks for testing and confirming. New version now submitted. Should be available shortly as version 3.1.5
-
Re: Ty Package Tracker v3.1.4
Thank you jeking for updating the plugin and providing support. I have stop updating this plugin because it still functional and gets the job done. My version is highly customized so I don't upload my version because the plugin will probably not work for most people.
I'm curious to know if anyone is using a 3rd party shipping software like ShipRush or ShipStation. I believe ShipRush is still free for FedEx shippers and both UPS and USPS shipper need to pay a monthly fee. I have modified the code for ShipRush software to save the tracking number to zencart automatically. If others are using ShipRush, I can clean up the code and post it here.
-
Re: Ty Package Tracker v3.1.4
Can someone point me to the rite page where I can edit the words where it shows in the Add Tracking ID box:
Pending
Processing
Delivered
Update
I would like to change the word Delivered to Shipped instead.
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
Maynards
Can someone point me to the rite page where I can edit the words where it shows in the Add Tracking ID box:
Pending
Processing
Delivered
Update
I would like to change the word Delivered to Shipped instead.
This is an admin setting, not a page. Admin>Localization>Order Status
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
jeking
This is an admin setting, not a page. Admin>Localization>Order Status
Exactly what I was looking for.
Very much appreciated.
-
Re: Ty Package Tracker v3.1.4
I'm seeing some significant differences between the ZC code in the modified files and the ZC 1.5.5e that I installed. I honestly am afraid to make a mistake, it's no longer a straight-across comparison. Just be warned.
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
WWWD
I'm seeing some significant differences between the ZC code in the modified files and the ZC 1.5.5e that I installed. I honestly am afraid to make a mistake, it's no longer a straight-across comparison. Just be warned.
Yes, I have an updated version I have not posted yet. If you'd like to try it, PM me your email address.
-
Re: Ty Package Tracker v3.1.4
has this been verified working on ZC 1.5.5e ?
Thank you :)
-
Re: Ty Package Tracker v3.1.4
Did you read the post immediately prior to yours? That has your answer.
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
jeking
Did you read the post immediately prior to yours? That has your answer.
LOL OMG. I read 90% of the thread and missed the last post. Old age does wonderful things.
Thank you :)
-
Re: Ty Package Tracker v3.1.4
best mod ever... should be part of the standard zen cart package
how hard would it be to add more carrier options ?
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
SLY Designs
best mod ever... should be part of the standard zen cart package
how hard would it be to add more carrier options ?
You can configure up to five carriers currently. If you need more, follow the current logic in the code to add as many as you need. Shouldn't be to big of a job.
-
Re: Ty Package Tracker v3.1.4
Great addon and easy to install.
For those interested in using with Australia Post: https://auspost.com.au/track/track.html?id=
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
jeking
You can configure up to five carriers currently. If you need more, follow the current logic in the code to add as many as you need. Shouldn't be to big of a job.
Thanks for the reply, could you point me in the direction of which files would need to be modified to add more carriers, I can work out the rest from there
Cheers
-
Re: Ty Package Tracker v3.1.4
Is this module going to be updated for ZC 1.5.6 ?
Having looked at the files, there are considerable changes to admin/orders.php in areas where TY Package Tracker has edited the core code
-
Re: Ty Package Tracker v3.1.4
Yes. I have a version ready but has not been thoroughly tested yet. Would you like to try it out?
Quote:
Originally Posted by
strelitzia
Is this module going to be updated for ZC 1.5.6 ?
Having looked at the files, there are considerable changes to admin/orders.php in areas where TY Package Tracker has edited the core code
-
Re: Ty Package Tracker v3.1.4
Sure, I'll give it a test and let you know if there are any difficulties. You can PM me if necessary
-
Re: Ty Package Tracker v3.1.4
PM sent. If anyone else wants to test/trouble shoot, let me know.
Quote:
Originally Posted by
strelitzia
Sure, I'll give it a test and let you know if there are any difficulties. You can PM me if necessary
-
Re: Ty Package Tracker v3.1.4
I have a version ready for testing on Zen Cart 1.5.6. If you are interested in testing it, PM me.
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
jeking
I have a version ready for testing on Zen Cart 1.5.6. If you are interested in testing it, PM me.
Great work! I have just sent you a PM. This is pretty much the last thing I need to implement before rolling 1.5.6 over to my live site.
-
Re: Ty Package Tracker v3.1.4
Good to know, thanks for testing and confirming.
Quote:
Originally Posted by
millsii
Great work! I have just sent you a PM. This is pretty much the last thing I need to implement before rolling 1.5.6 over to my live site.
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
jeking
Good to know, thanks for testing and confirming.
Thanks for sending a link to the test version for 1.5.6. I have merged the changes and uploaded the relevant files and all looks to be working as it should. Great work!
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
strelitzia
Is this module going to be updated for ZC 1.5.6 ?
Having looked at the files, there are considerable changes to admin/orders.php in areas where TY Package Tracker has edited the core code
Hello,
Can you send this module for me too? i need for zc 1.5.6.
thank you
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
jeking
I have a version ready for testing on Zen Cart 1.5.6. If you are interested in testing it, PM me.
Hello,
Can you send this module for me too? i need for zc 1.5.6.
thank you
-
1 Attachment(s)
Re: Ty Package Tracker v3.1.4
with version 1.5.5e the order page is blocked
Attachment 18291
what can I do?
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
echexxxxxxxx10
Following the posting guidelines would be helpful. Don't overlook this one: Please post the contents of related "debug logs" generated by Zen Cart (wrap the content in [ code ] and [ /code ] tags please!).
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
jeking
Following the posting guidelines would be helpful. Don't overlook this one: Please post the contents of related "debug logs" generated by Zen Cart (wrap the content in
tags please!).
here is the error code, sorry
Code:
[24-Jan-2019 20:54:03 Europe/Rome] Request URI: /admin/orders.php?page=1&oID=19406&action=edit, IP address: 87.0.156.216
#1 trigger_error() called at [/home/efgioiel/test1.domain.com/includes/classes/db/mysql/query_factory.php:167]
#2 queryFactory->show_error() called at [/home/efgioiel/test1.domain.com/includes/classes/db/mysql/query_factory.php:139]
#3 queryFactory->set_error() called at [/home/efgioiel/test1.domain.com/includes/classes/db/mysql/query_factory.php:266]
#4 queryFactory->Execute() called at [/home/efgioiel/test1.domain.com/admin/orders.php:670]
[24-Jan-2019 20:54:03 Europe/Rome] PHP Fatal error: 1054:Unknown column 'updated_by' in 'field list' :: select orders_status_id, date_added, customer_notified, track_id1, track_id2, track_id3, track_id4, track_id5, comments, updated_by
FROM zc_orders_status_history
WHERE orders_id = '19406'
ORDER BY date_added ==> (as called by) /home/efgioiel/test1.domain.com/admin/orders.php on line 670 <== in /home/efgioiel/test1.domain.com/includes/classes/db/mysql/query_factory.php on line 167
-
Re: Ty Package Tracker v3.1.4
Quote:
Originally Posted by
echexxxxxxxx10
here is the error code, sorry
Code:
[24-Jan-2019 20:54:03 Europe/Rome] Request URI: /admin/orders.php?page=1&oID=19406&action=edit, IP address: 87.0.156.216
#1 trigger_error() called at [/home/efgioiel/test1.domain.com/includes/classes/db/mysql/query_factory.php:167]
#2 queryFactory->show_error() called at [/home/efgioiel/test1.domain.com/includes/classes/db/mysql/query_factory.php:139]
#3 queryFactory->set_error() called at [/home/efgioiel/test1.domain.com/includes/classes/db/mysql/query_factory.php:266]
#4 queryFactory->Execute() called at [/home/efgioiel/test1.domain.com/admin/orders.php:670]
[24-Jan-2019 20:54:03 Europe/Rome] PHP Fatal error: 1054:Unknown column 'updated_by' in 'field list' :: select orders_status_id, date_added, customer_notified, track_id1, track_id2, track_id3, track_id4, track_id5, comments, updated_by
FROM zc_orders_status_history
WHERE orders_id = '19406'
ORDER BY date_added ==> (as called by) /home/efgioiel/test1.domain.com/admin/orders.php on line 670 <== in /home/efgioiel/test1.domain.com/includes/classes/db/mysql/query_factory.php on line 167
The column 'updated_by' was added in Zen Cart 1.5.6. You said you're using 1.5.5e so you installed the wrong version. You'll need to remove what you installed and install the correct version.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
hello everyone, on the administration side everything works fine, but the client side does not receive the email and the tracking link does not appear in the customer profile, what should I check? thank you
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
echexxxxxxxx10
hello everyone, on the administration side everything works fine, but the client side does not receive the email and the tracking link does not appear in the customer profile, what should I check? thank you
Double check your storefront file edits and merges.
Did customers get a status update emails prior to installing this?
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
jeking
Double check your storefront file edits and merges.
Did customers get a status update emails prior to installing this?
hello template side I corrected the error, there was no change to a file, now I see the link in the profile, but the emails do not reach customers:no:
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
I solved by testing the output of the emails from my server, but I point out that it would be advisable to modify the orders.php file in order to render the text of the multilingual emails :D
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
echexxxxxxxx10
Did customers get a status update emails prior to installing this?
You never answered my other question. Of course, check spam folders too.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
jeking
You never answered my other question. Of course, check spam folders too.
Now it works correctly, I had to change the settings for how to send emails. thank you very much for helping
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Despite I downloaded Ty Package Tracker Version 3.1.6.
After I installed, it still gave me notification that Ty Package Tracker Version 3.1.5 installed successfully.
I wonder if this just just numbering error?
(Yes, I installed on ZC 1.5.6a).
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
PanZC2020
Despite I downloaded Ty Package Tracker Version 3.1.6.
After I installed, it still gave me notification that Ty Package Tracker Version 3.1.5 installed successfully.
I wonder if this just just numbering error?
(Yes, I installed on ZC 1.5.6a).
Yes, just a numbering error. I missed updating the version number. I'll catch it next release.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
recently we have this issue with this plug in.
ZC 1.5.6a
Ty Package Tracker Version 3.1.6.
Here is the Logs:
[08-Mar-2019 09:22:44 America/New_York] Request URI: /index.php?main_page=down_for_maintenance, IP address: 40.77.167.20
#1 sizeof() called at [/homepages/29/xxxxx/htdocs/DIY2019/includes/templates/template_default/sideboxes/tpl_track_orders.php:19]
#2 require(/homepages/29/xxxxx/htdocs/DIY2019/includes/templates/template_default/sideboxes/tpl_track_orders.php) called at [/homepages/29/xxxxx/htdocs/DIY2019/includes/modules/sideboxes/track_orders.php:55]
#3 require(/homepages/29/xxxxx/htdocs/DIY2019/includes/modules/sideboxes/track_orders.php) called at [/homepages/29/xxxxx/htdocs/DIY2019/includes/modules/column_right.php:32]
#4 require(/homepages/29/xxxxx/htdocs/DIY2019/includes/modules/column_right.php) called at [/homepages/29/xxxxx/htdocs/DIY2019/includes/templates/responsive_classic/common/tpl_main_page.php:200]
#5 require(/homepages/29/xxxxx/htdocs/DIY2019/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/homepages/29/xxxxx/htdocs/DIY2019/index.php:97]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /homepages/29/xxxxx/htdocs/DIY2019/includes/templates/template_default/sideboxes/tpl_track_orders.php on line 19.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
dsc7050
recently we have this issue with this plug in.
ZC 1.5.6a
Ty Package Tracker Version 3.1.6.
Here is the Logs:
[08-Mar-2019 09:22:44 America/New_York] Request URI: /index.php?main_page=down_for_maintenance, IP address: 40.77.167.20
#1 sizeof() called at [/homepages/29/xxxxx/htdocs/DIY2019/includes/templates/template_default/sideboxes/tpl_track_orders.php:19]
#2 require(/homepages/29/xxxxx/htdocs/DIY2019/includes/templates/template_default/sideboxes/tpl_track_orders.php) called at [/homepages/29/xxxxx/htdocs/DIY2019/includes/modules/sideboxes/track_orders.php:55]
#3 require(/homepages/29/xxxxx/htdocs/DIY2019/includes/modules/sideboxes/track_orders.php) called at [/homepages/29/xxxxx/htdocs/DIY2019/includes/modules/column_right.php:32]
#4 require(/homepages/29/xxxxx/htdocs/DIY2019/includes/modules/column_right.php) called at [/homepages/29/xxxxx/htdocs/DIY2019/includes/templates/responsive_classic/common/tpl_main_page.php:200]
#5 require(/homepages/29/xxxxx/htdocs/DIY2019/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/homepages/29/xxxxx/htdocs/DIY2019/index.php:97]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /homepages/29/xxxxx/htdocs/DIY2019/includes/templates/template_default/sideboxes/tpl_track_orders.php on line 19.
What PHP version?
Is this just an error in the logs or also on the front-end?
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
jeking
What PHP version?
Is this just an error in the logs or also on the front-end?
PHP Version 7.2.15
just in the logs folder..Front-end no problem.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
In includes/templates/template_default/sideboxes/tpl_track_orders.php
replace line 19
Code:
if (sizeof($customer_orders)==0) {
with
Code:
if (is_array($customer_orders) && (sizeof($customer_orders)==0) {
I have *not* tested this so keep a backup of the original file and test the results after the change.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
jeking
In includes/templates/template_default/sideboxes/tpl_track_orders.php
replace line 19
Code:
if (sizeof($customer_orders)==0) {
with
Code:
if (is_array($customer_orders) && (sizeof($customer_orders)==0) {
I have *not* tested this so keep a backup of the original file and test the results after the change.
Thanks..once i change the code, it's stop show error on the logs folder, but on the Front-end not showing up the (Track order), also i check the layout box controller, the tracking_order.php Left/Right column status is ON, single Column status: ON.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
dsc7050
Thanks..once i change the code, it's stop show error on the logs folder, but on the Front-end not showing up the (Track order), also i check the layout box controller, the tracking_order.php Left/Right column status is ON, single Column status: ON.
Ok, revert to the old file and I'll take a look as soon as I can.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
jeking
Ok, revert to the old file and I'll take a look as soon as I can.
Thank you..
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Change line 19 to be:
Code:
if (@sizeof($customer_orders)==0) {
This was tested so should solve the issue.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
thank you so much!! its work.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
I need the tracking input fields shown in orders.php to remove spaces from the input before putting them into the db, on an older version of ty track I had this code in orders.php that would do the job.
Code:
// BEGIN TY TRACKER 1 - DEFINE VALUES ----------------------------------------------
$track_id1 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id1']));
$track_id2 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id2']));
$track_id3 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id3']));
$track_id4 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id4']));
$track_id5 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id5']));
$track_id6 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id6']));
$track_id7 = str_replace(" ", "", zen_db_prepare_input($_POST['track_id7']));
// END TY TRACKER 1 - DEFINE VALUES ------------------------------------------------------------------
I can't find or figure out a place to put a str_replace to do the job on the latest version.
I've found the similar code in edit_orders that uses an array and I've modified that to do what I need, but the orders.php code is different, any help greatly received.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
DigitalShadow
I need the tracking input fields to remove spaces from the input before putting them into the db.
Edit includes/functions/functions_osh_update.php
find
Code:
// Begin Ty Package Tracker
foreach($track_id as $id => $track) {
$osh_sql['track_id' . $id] = zen_db_input($track);
}
replace with
Code:
// Begin Ty Package Tracker
foreach($track_id as $id => $track) {
$osh_sql['track_id' . $id] = str_replace(" ", "", zen_db_input($track));
}
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
I loaded this plug in in 1.5.7 and it appears the only error I keep getting is:
PHP Warning: Invalid argument supplied for foreach() in /****/****/public_html/****/includes/functions/functions_osh_update.php on line 206.
Can you supply a fix for this issue?
Thank You
-
1 Attachment(s)
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
1.5.7a
PHP 7.4
Attachment 19266
I have Package tracker running in 1.5.7a but I am getting a PHP error stating:
PHP Warning: Invalid argument supplied for foreach() in /home2/***/public_html/ZC157/includes/functions/functions_osh_update.php on line 206.
While there were a few other issues that were easy to resolve in functions_osh_update it appears to be this portion of code below causing the issue:
Code:
// Begin Ty Package Tracker
foreach($track_id as $id => $track) {
$osh_sql['track_id' . $id] = zen_db_input($track);
}
Will the edit to trackid below resolve this error:
Code:
// Begin Ty Package Tracker
foreach('track_id' as $id => $track) {
$osh_sql['track_id' . $id] = str_replace(" ", "", zen_db_input($track));
}
Thank You for any assistance it is greatly appreciated
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Will the edit to trackid below resolve this error:
Code:
// Begin Ty Package Tracker
foreach('track_id' as $id => $track) {
$osh_sql['track_id' . $id] = str_replace(" ", "", zen_db_input($track));
}
NO!
try:
PHP Code:
// Begin Ty Package Tracker
if (is_array($track_id) {
foreach($track_id as $id => $track) {
$osh_sql['track_id' . $id] = zen_db_input($track);
}
}
you can still do that str_replace if so inclined...
best.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
carlwhat
NO!
try:
PHP Code:
// Begin Ty Package Tracker
if (is_array($track_id) {
foreach($track_id as $id => $track) {
$osh_sql['track_id' . $id] = zen_db_input($track);
}
}
you can still do that str_replace if so inclined...
best.
That edit broke the entire web site and caused the below error:
[code]
[04-Nov-2020 19:41:01 UTC] PHP Parse error: syntax error, unexpected 'foreach' (T_FOREACH) in /home2/***/public_html/ZC157/includes/functions/functions_osh_update.php on line 207
[04-Nov-2020 19:41:01 UTC] Request URI: /ZC157/***/index.php?cmd=login, IP address: ***
--> PHP Parse error: syntax error, unexpected 'foreach' (T_FOREACH) in /home2/***/public_html/ZC157/includes/functions/functions_osh_update.php on line 207.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Missing a right-paren:
Code:
// Begin Ty Package Tracker
if (is_array($track_id)) {
foreach($track_id as $id => $track) {
$osh_sql['track_id' . $id] = zen_db_input($track);
}
}
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
lat9
Missing a right-paren:
Code:
// Begin Ty Package Tracker
if (is_array($track_id)) {
foreach($track_id as $id => $track) {
$osh_sql['track_id' . $id] = zen_db_input($track);
}
}
Thank You carlwhat and lat9 your assistance is always much appreciated.:smile:
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Thank You carlwhat and lat9 your assistance is always much appreciated.:smile:
At this point it appears that edit has resolved the only issue I was having with TyPackage Tracker version 3.1.6 in 1.5.7a
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
Thank You carlwhat and lat9 your assistance is always much appreciated.:smile:
i am the typo miscreant. my apologies!
thanks @lat9 for the cleanup!
best.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
I have installed this mod on a fresh install of 1.5.7b running php7.3
Mod posts the tracking number and displays in the admin order details, sends out tan email with tracking number, however, it does not display the tracking number in the My Account>>Order Information facing the customer.
In earlier versions of zc, 1.5.6, it would display the tracking number in the customers Order details.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
Carbonless
I have installed this mod on a fresh install of 1.5.7b running php7.3
Mod posts the tracking number and displays in the admin order details, sends out tan email with tracking number, however, it does not display the tracking number in the My Account>>Order Information facing the customer.
In earlier versions of zc, 1.5.6, it would display the tracking number in the customers Order details.
I'm guessing that you haven't incorporated this mod's customizations for tpl_account_history_info_default.php into your template.
https://share.getcloudapp.com/JruqOlxr
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
DrByte
You guessed correctly. I "assumed" the "custom_template" folder had to be uploaded as is. All is working.
THANK YOU!
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
Carbonless
You guessed correctly. I "assumed" the "custom_template" folder had to be uploaded as is. All is working.
THANK YOU!
WHile the mod is working, it's also causing an error log with each log in.
[17-Dec-2020 21:59:16 America/Chicago] Request URI: /index.php?main_page=login, IP address: xxxxx
#1 sizeof() called at [/includes/templates/ntobs20/sideboxes/tpl_track_orders.php:19]
#2 require(/includes/templates/ntobs20/sideboxes/tpl_track_orders.php) called at [/includes/modules/sideboxes/ntobs20/track_orders.php:55]
#3 include(/includes/modules/sideboxes/ntobs20/track_orders.php) called at [/includes/modules/column_right.php:25]
#4 require(/includes/modules/column_right.php) called at [/includes/templates/ntobs20/common/tpl_main_page.php:234]
#5 require(/includes/templates/ntobs20/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /includes/templates/ntobs20/sideboxes/tpl_track_orders.php on line 19.
Not sure what needs to be corrected?
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
Carbonless
WHile the mod is working, it's also causing an error log with each log in.
[17-Dec-2020 21:59:16 America/Chicago] Request URI: /index.php?main_page=login, IP address: xxxxx
#1 sizeof() called at [/includes/templates/ntobs20/sideboxes/tpl_track_orders.php:19]
#2 require(/includes/templates/ntobs20/sideboxes/tpl_track_orders.php) called at [/includes/modules/sideboxes/ntobs20/track_orders.php:55]
#3 include(/includes/modules/sideboxes/ntobs20/track_orders.php) called at [/includes/modules/column_right.php:25]
#4 require(/includes/modules/column_right.php) called at [/includes/templates/ntobs20/common/tpl_main_page.php:234]
#5 require(/includes/templates/ntobs20/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /includes/templates/ntobs20/sideboxes/tpl_track_orders.php on line 19.
Not sure what needs to be corrected?
i would suggest reading this thread.... it might help.... especially right around here:
https://www.zen-cart.com/showthread....13#post1355813
best.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
carlwhat
oh man... I overwrote the fix and didnt realize it. Thank you!
I am now only getting log errors when logging into or out of a customer account.
LOGIN error code:
Code:
[18-Dec-2020 08:53:09 America/Chicago] Request URI: /index.php?main_page=login, IP address: xxxxx
#1 sizeof() called at [/includes/templates/ntobs20/sideboxes/tpl_track_orders.php:19]
#2 require(/includes/templates/ntobs20/sideboxes/tpl_track_orders.php) called at [/includes/modules/sideboxes/ntobs20/track_orders.php:55]
#3 include(/includes/modules/sideboxes/ntobs20/track_orders.php) called at [/includes/modules/column_right.php:25]
#4 require(/includes/modules/column_right.php) called at [/includes/templates/ntobs20/common/tpl_main_page.php:234]
#5 require(/includes/templates/ntobs20/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /includes/templates/ntobs20/sideboxes/tpl_track_orders.php on line 19.
LOG OFF error code:
Code:
[18-Dec-2020 08:52:33 America/Chicago] Request URI: /index.php?main_page=logoff, IP address: xxxxx
#1 sizeof() called at [/includes/templates/ntobs20/sideboxes/tpl_track_orders.php:19]
#2 require(/includes/templates/ntobs20/sideboxes/tpl_track_orders.php) called at [/includes/modules/sideboxes/ntobs20/track_orders.php:55]
#3 include(/includes/modules/sideboxes/ntobs20/track_orders.php) called at [/includes/modules/column_right.php:25]
#4 require(/includes/modules/column_right.php) called at [/includes/templates/ntobs20/common/tpl_main_page.php:234]
#5 require(/includes/templates/ntobs20/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /includes/templates/ntobs20/sideboxes/tpl_track_orders.php on line 19.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
Carbonless
oh man... I overwrote the fix and didnt realize it. Thank you!
I am now only getting log errors when logging into or out of a customer account.
LOGIN error code:
Code:
[18-Dec-2020 08:53:09 America/Chicago] Request URI: /index.php?main_page=login, IP address: xxxxx
#1 sizeof() called at [/includes/templates/ntobs20/sideboxes/tpl_track_orders.php:19]
#2 require(/includes/templates/ntobs20/sideboxes/tpl_track_orders.php) called at [/includes/modules/sideboxes/ntobs20/track_orders.php:55]
#3 include(/includes/modules/sideboxes/ntobs20/track_orders.php) called at [/includes/modules/column_right.php:25]
#4 require(/includes/modules/column_right.php) called at [/includes/templates/ntobs20/common/tpl_main_page.php:234]
#5 require(/includes/templates/ntobs20/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /includes/templates/ntobs20/sideboxes/tpl_track_orders.php on line 19.
LOG OFF error code:
Code:
[18-Dec-2020 08:52:33 America/Chicago] Request URI: /index.php?main_page=logoff, IP address: xxxxx
#1 sizeof() called at [/includes/templates/ntobs20/sideboxes/tpl_track_orders.php:19]
#2 require(/includes/templates/ntobs20/sideboxes/tpl_track_orders.php) called at [/includes/modules/sideboxes/ntobs20/track_orders.php:55]
#3 include(/includes/modules/sideboxes/ntobs20/track_orders.php) called at [/includes/modules/column_right.php:25]
#4 require(/includes/modules/column_right.php) called at [/includes/templates/ntobs20/common/tpl_main_page.php:234]
#5 require(/includes/templates/ntobs20/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /includes/templates/ntobs20/sideboxes/tpl_track_orders.php on line 19.
I didnt notice this till JUST now, I was only viewing from the "EDIT" orders mod... when viewing outside of the edit orders mod, the tracking fields dont display nor does the tracking data entered.
this is the only error log I'm getting:
Code:
[18-Dec-2020 17:20:08 America/Chicago] Request URI: /index.php?main_page=account_history_info&order_id=6, IP address: xxxxx
#1 sizeof() called at [/includes/templates/ntobs20/templates/tpl_account_history_info_default.php:27]
#2 require(/includes/templates/ntobs20/templates/tpl_account_history_info_default.php) called at [/includes/templates/ntobs20/common/tpl_main_page.php:195]
#3 require(/includes/templates/ntobs20/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /includes/templates/ntobs20/templates/tpl_account_history_info_default.php on line 27.
-
1 Attachment(s)
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
You said you're using the zca bootstrap template version 3.0.0, right? Here's the merged tpl-account-history-info template file with the Ty stuff added
Attachment 19326
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
DrByte
You said you're using the zca bootstrap template version 3.0.0, right? Here's the merged tpl-account-history-info template file with the Ty stuff added
Attachment 19326
Correct! I'll give a gander and advise. I truly appreciate this!
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
DrByte
You said you're using the zca bootstrap template version 3.0.0, right? Here's the merged tpl-account-history-info template file with the Ty stuff added
Attachment 19326
That does clean up the client side of things....
But didnt touch that from the admin panel when viewing an order, I cannot see the tracking mod or data. If I use the EDIT ORDER mod, I can see the mod and enter tracking along with seeing it.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
DrByte
You said you're using the zca bootstrap template version 3.0.0, right? Here's the merged tpl-account-history-info template file with the Ty stuff added
Attachment 19326
I downloaded the ZCA4 beta and scrapped the last template.
IF I am looking at order details, I still cannot see the TY mod, however, if I EDIT order I can see the tracking mod and associated data that has been input.
Any other ideas?
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
If you mean you can't see it in the Admin, it's probably because of merging issues with the admin orders file.
The mod hasn't been upgraded for v1.5.7. There are hooks in v157 that would allow it to work without editing the admin orders file at all.
I make tackle it in spare time.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
DrByte
If you mean you can't see it in the Admin, it's probably because of merging issues with the admin orders file.
The mod hasn't been upgraded for v1.5.7. There are hooks in v157 that would allow it to work without editing the admin orders file at all.
I may tackle it in my spare time.
Correct, cannot see in the admin when viewing the order. I have Edit Order mod installed and with that, I can post and view using the tracking mod, which then displays properly on the client side too.
I completely appreciate all you have done for ZC over the years, you are a staple in the community.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
Carbonless
Correct, cannot see in the admin when viewing the order. I have Edit Order mod installed and with that, I can post and view using the tracking mod, which then displays properly on the client side too.
I completely appreciate all you have done for ZC over the years, you are a staple in the community.
1.5.7b
PHP 7.3
Responsive Classic Template
TyPackage Tracker
I can see it on the Admin side, without editing an order, but cannot get it working on the client side.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
1.5.7b
PHP 7.3
Responsive Classic Template
TyPackage Tracker
I can see it on the Admin side, without editing an order, but cannot get it working on the client side.
When you post the tracking and send the email, does the email include the tracking number and link?
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
Carbonless
When you post the tracking and send the email, does the email include the tracking number and link?
I am not sure what happened but all appears to be working correctly now.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
wsworx
I am not sure what happened but all appears to be working correctly now.
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.
After all that I went and did a new test order again, through the test account, and now it is doing the same thing as the real order did, no tracking number in the account history view.
I also noticed the email has "$EMAIL_SALUTATION" listed before the customer's name. I am assuming because the variable is not defined somewhere.