
Originally Posted by
BlessIsaacola
Okay, there used to be a bug in Zen Cart where when order update is sent, it will show New Status twice. Ty Package tracker fixed this.
However in 1.3.5 this bug has been fixed and not Ty Package tracker is broken because when a Status Update is emailed using Ty Package tracker the New Status is blank in the email sent to customer without any update showing i.e. Cancelled, Shipped, etc.
Thanks for finding the bug. You are correct. On html emails, the status will be blank. Text e-mails are not affected. I will fix it in the next update. This is an easy fix. If you want to fix it now, you need to edit the file admin/ty_package_tracker.php
Look for the following 3 lines (line 114-116)
Code:
$html_msg['EMAIL_TEXT_STATUS_COMMENTS'] = $notify_comments;
$html_msg['EMAIL_TEXT_STATUS_UPDATED'] = str_replace('\n','', EMAIL_TEXT_STATUS_UPDATED);
$html_msg['EMAIL_TEXT_STATUS_LABEL'] = '<strong>New status:</strong>';
Replace the 3 lines with this
Code:
$html_msg['EMAIL_TEXT_STATUS_COMMENTS'] = nl2br($notify_comments);
$html_msg['EMAIL_TEXT_STATUS_UPDATED'] = str_replace('\n','', EMAIL_TEXT_STATUS_UPDATED);
$html_msg['EMAIL_TEXT_STATUS_LABEL'] = str_replace('\n','', sprintf(EMAIL_TEXT_STATUS_LABEL, $orders_status_array[$status] ));
This fix should ONLY be use if you are running Zencart 1.3.5. Do not use the code on version 1.3.0.2 (or earlier) or else you will get the double status as noted above.
Ty.
Bookmarks