-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
joyjoy
I just installed this totally awesome mod and I have a few questions...
When logged in as a customer you can view your orders history, the information that comes up seems to pull from the original history, it doesn't show the tracking information....
However if you view that same order through the "previous orders" sidebox it displays the order history through tracker complete with tracking details. Just wondering how to get both "previous orders" to display the same information...
Did that make sense? :blink:
Another question I have is about that track.gif button...I see that it was installed...but I have not idea where/when I'm supposed to be able to see it?
Thank you!
Okay, I was able to figure out the order history...it was a recommended change in the read me files. :smile:
I still have two more questions, the track.gif button...
And also on the sidebox. How do you configure it so that it will be small when you are logged out and will adjust to display the orders when logged in. Similar to the way the shoppping cart box works. When there's nothing in it, it's small, once you add items it adjusts. Thank you.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
guess it doesnt work on 1.39g, when I tried to input the SQL update I get this:
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"zen_cfg_select_option(array('True', 'False'),"), ('', 'Carrier 2 Name' at line 1
in:
[INSERT INTO configuration VALUES ('', 'Carrier 1 Name', 'CARRIER_NAME_1', 'FedEx', 'Enter name of Carrier 1 <br />Example: FedEx, UPS, Canada Post, etc...<br />(default: FedEx)', @tyid, '11', now(), now(), NULL, NULL), ('', 'Carrier 1 Tracking Link', 'CARRIER_LINK_1', 'http://www.fedex.com/Tracking?action=track&tracknumbers=', 'Enter the tracking link of Carrier 1<br /> Example: http://www.fedex.com/Tracking?action...&tracknumbers=', @tyid, '12', now(), now(), NULL, NULL), ('', 'Carrier 1 Status', 'CARRIER_STATUS_1', 'True', 'Enable Tracking for Carrier 1<br />Set to false if you do NOT want Carrier 1 to be display on Admin and Customer page.', @tyid, '13', now(), now(), NULL, "zen_cfg_select_option(array('True', 'False'),"), ('', 'Carrier 2 Name', 'CARRIER_NAME_2', 'UPS', 'Enter name of Carrier 2 <br />Example: FedEx, UPS, Canada Post, etc...<br />(default: UPS)', @tyid, '21', now(), now(), NULL, NULL), ('', 'Carrier 2 Tracking Link', 'CARRIER_LINK_2', 'http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&l oc=en_US&InquiryNumber1=', 'Enter the tracking link of Carrier 1<br /> Example: http://www.fedex.com/Tracking?action...&tracknumbers=', @tyid, '22', now(), now(), NULL, NULL), ('', 'Carrier 2 Status', 'CARRIER_STATUS_2', 'True', 'Enable Tracking for Carrier 1<br />Set to false if you do NOT want Carrier 2 to be display on Admin and Customer page.', @tyid, '23', now(), now(), NULL, "zen_cfg_select_option(array('True', 'False'),"), ('', 'Carrier 3 Name', 'CARRIER_NAME_3', 'USPS', 'Enter name of Carrier 3 <br />Example: FedEx, UPS, Canada Post, etc...<br />(default: USPS)', @tyid, '31', now(), now(), NULL, NULL), ('', 'Carrier 3 Tracking Link', 'CARRIER_LINK_3', 'http://trkcnfrm1.smi.usps.com/PTSInternetWeb/InterLabelInquiry.do?origTrackNum=', 'Enter the tracking link of Carrier 1<br /> Example: http://www.fedex.com/Tracking?action...&tracknumbers=', @tyid, '32', now(), now(), NULL, NULL), ('', 'Carrier 3 Status', 'CARRIER_STATUS_3', 'True', 'Enable Tracking for Carrier 1<br />Set to false if you do NOT want Carrier 3 to be display on Admin and Customer page.', @tyid, '33', now(), now(), NULL, "zen_cfg_select_option(array('True', 'False'),"), ('', 'Carrier 4 Name', 'CARRIER_NAME_4', 'DHL', 'Enter name of Carrier 4 <br />Example: FedEx, UPS, Canada Post, etc...<br />(default: DHL)', @tyid, '41', now(), now(), NULL, NULL), ('', 'Carrier 4 Tracking Link', 'CARRIER_LINK_4', 'http://track.dhl-usa.com/TrackByNbr.asp?ShipmentNumber=', 'Enter the tracking link of Carrier 1<br /> Example: http://www.fedex.com/Tracking?action...&tracknumbers=', @tyid, '42', now(), now(), NULL, NULL), ('', 'Carrier 4 Status', 'CARRIER_STATUS_4', 'True', 'Enable Tracking for Carrier 1<br />Set to false if you do NOT want Carrier 4 to be display on Admin and Customer page.', @tyid, '43', now(), now(), NULL, "zen_cfg_select_option(array('True', 'False'),"), ('', 'Carrier 5 Name', 'CARRIER_NAME_5', '', 'Enter name of Carrier 5 <br />Example: FedEx, UPS, Canada Post, etc...<br />(default: blank)', @tyid, '51', now(), now(), NULL, NULL), ('', 'Carrier 5 Tracking Link', 'CARRIER_LINK_5', '', 'Enter the tracking link of Carrier 1<br /> Example: http://www.fedex.com/Tracking?action...&tracknumbers=', @tyid, '52', now(), now(), NULL, NULL), ('', 'Carrier 5 Status', 'CARRIER_STATUS_5', 'False', 'Enable Tracking for Carrier 1<br />Set to false if you do NOT want Carrier 5 to be display on Admin and Customer page.', @tyid, '53', now(), now(), NULL, "zen_cfg_select_option(array('True', 'False'),"), ('', 'Max display for Track Order Sidebox', 'MAX_DISPLAY_PRODUCTS_IN_TRACK_ORDERS_BOX', '3', 'Max number of Orders to display on Track Order sidebox ', @tyid, '60', now(), now(), NULL, NULL), ('', 'Is Super Orders Module Installed?', 'SUPER_ORDERS_MOD_STATUS', 'False', 'If installed, a link to the Super Orders module will be added to the Tracking Page.', @tyid, '70', now(), now(), NULL, "zen_cfg_select_option(array('True', 'False'),");]
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.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Hi
Firstly may i say this is an excellent mod ive had it working for a few days now.
Can i make some suggestions/requests for updates
1. Would it be possible to include the tracking code link on the add tracking id summary page before you go into the specific order. So that just before the action buttons is the tracking code that links off to the carriers tracking page?
2. Also using a similar bit of code to do the same in other mods such as the PDF Order Center (PDFOC) or Super Orders summary pages?
3. Get the tracking data into account_order_history_info_default.php as I have all my PDF invoicing programmed into this page.
If these have already been answered in this thread can someone point me at the rough page number.
Cheers
Gareth
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Quote:
Originally Posted by
garethrooney
3. Get the tracking data into account_order_history_info_default.php as I have all my PDF invoicing programmed into this page.
Using a program like Winmerge or Beyond Compare you could make these changes quite easily..
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Cheers for that didnt use a merge program in the end but you did make me go an look and see there was a tracker template which id forgotten about. Switched it over now to the tracker template as my default account history info and ported my invoice code into the tracker page also.
Works a treat now.
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
I've benefited a lot from this wonderful forum, so it's my time to give back.
I did a quick search and couldn't find so if this info was posted before please moderator just delete my post.
For those interested we've made some changes to this mod to show USPS AutoFill button and CC info if you use the offline CC processing method.
Make the following changes to admin>tracker.php file:
around line 315 find
Code:
echo '<a href="' . zen_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $_GET['oID']) . '" TARGET="_blank">' . zen_image_button('button_invoice.gif', ICON_ORDER_INVOICE) . '</a> ';
change to
Code:
echo '<a href="' . zen_href_link(FILENAME_ORDERS_INVOICE, 'oID=' . $_GET['oID']) . '" TARGET="_blank">' . zen_image_button('button_invoice.gif', ICON_ORDER_INVOICE) . '</a> ';
// ====> BOF: USPS.com AutoFill <====
$contents[] = array('align' => 'center', 'text' => '<BUTTON onclick="javascript:ParseIt()">USPS AutoFill</BUTTON>');
// ====> EOF: USPS.com AutoFill <====
around line 334 find
Code:
<td class="main" valign="top"><b><?php echo ENTRY_SHIPPING_ADDRESS; ?></b></td>
change to
Code:
<td class="main" valign="top"><b><?php echo ENTRY_SHIPPING_ADDRESS; ?></b></td>
<td class="main">
<?php // ====> BOF: USPS.com AutoFill <==== ?>
<?php echo zen_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br />'); ?>
<?php require(DIR_WS_MODULES . 'usps_autofill_button.php'); ?>
<br /><BUTTON onclick="javascript:ParseIt()">USPS AutoFill</BUTTON>
<?php // ====> EOF: USPS.com AutoFill <==== ?>
</td>
around line 377 find
Code:
<td colspan="2" class="main"><b><u><?php echo ENTRY_PAYMENT_DETAILS; ?></u></b></td>
</tr>
</table>
change to
Code:
<td colspan="2" class="main"><b><u><?php echo ENTRY_PAYMENT_DETAILS; ?></u></b></td>
</tr>
<?php
if (zen_not_null($order->info['cc_type']) || zen_not_null($order->info['cc_owner']) || zen_not_null($order->info['cc_number'])) {
?>
<tr>
<td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo ENTRY_CREDIT_CARD_TYPE; ?></td>
<td class="main"><?php echo $order->info['cc_type']; ?></td>
</tr>
<tr>
<td class="main"><?php echo ENTRY_CREDIT_CARD_OWNER; ?></td>
<td class="main"><?php echo $order->info['cc_owner']; ?></td>
</tr>
<tr>
<td class="main"><?php echo ENTRY_CREDIT_CARD_NUMBER; ?></td>
<td class="main"><?php echo $order->info['cc_number'] . (zen_not_null($order->info['cc_number']) && !strstr($order->info['cc_number'],'X') && !strstr($order->info['cc_number'],'********') ? ' <a href="' . zen_href_link(FILENAME_ORDERS, '&action=mask_cc&oID=' . $oID, 'NONSSL') . '" class="noprint">' . TEXT_MASK_CC_NUMBER . '</a>' : ''); ?><td>
</tr>
<tr>
<td class="main"><?php echo ENTRY_CREDIT_CARD_CVV; ?></td>
<td class="main"><?php echo $order->info['cc_cvv'] . (zen_not_null($order->info['cc_cvv']) && !strstr($order->info['cc_cvv'],TEXT_DELETE_CVV_REPLACEMENT) ? ' <a href="' . zen_href_link(FILENAME_ORDERS, '&action=delete_cvv&oID=' . $oID, 'NONSSL') . '" class="noprint">' . TEXT_DELETE_CVV_FROM_DATABASE . '</a>' : ''); ?><td>
</tr>
<tr>
<td class="main"><?php echo ENTRY_CREDIT_CARD_EXPIRES; ?></td>
<td class="main"><?php echo $order->info['cc_expires']; ?></td>
</tr>
<?php
}
?>
</table>
around line 447 find
Code:
<td align="right" colspan="8"><table border="0" cellspacing="0" cellpadding="2">
change to
Code:
<td align="right" colspan="8"><table border="0" cellspacing="0" cellpadding="2">
<?php // ====> BOF: USPS.com AutoFill <==== ?>
<?php require(DIR_WS_MODULES . 'usps_autofill_button.php'); ?>
<tr><td align="right" colspan="2"><?php echo "Total Weight is $lbsval lbs. $ozval oz."; ?></td></tr>
<?php // ====> EOF: USPS.com AutoFill <==== ?>
around line 837 find
Code:
default:
if (isset($oInfo) && is_object($oInfo)) {
$heading[] = array('text' => '<b>[' . $oInfo->orders_id . '] ' . zen_datetime_short($oInfo->date_purchased) . '</b>');
}
break;
}
change to
Code:
default:
// ====> BOF: USPS.com AutoFill <====
$oID=$oInfo->orders_id;
require(DIR_WS_MODULES . 'usps_autofill_button.php');
// ====> EOF: USPS.com AutoFill <====
if (isset($oInfo) && is_object($oInfo)) {
$heading[] = array('text' => '<b>[' . $oInfo->orders_id . '] ' . zen_datetime_short($oInfo->date_purchased) . '</b>');
}
break;
}
Add the following lines to the admin>includes>languages>english>tracker.php
Code:
define('ENTRY_CREDIT_CARD_TYPE', 'Credit Card Type:');
define('ENTRY_CREDIT_CARD_OWNER', 'Credit Card Owner:');
define('ENTRY_CREDIT_CARD_NUMBER', 'Credit Card Number:');
define('ENTRY_CREDIT_CARD_CVV', 'Credit Card CVV Number:');
define('ENTRY_CREDIT_CARD_EXPIRES', 'Credit Card Expires:');
define('TEXT_DELETE_CVV_FROM_DATABASE','Delete CVV from database');
Upload modified files to the server and enjoy. :smile:
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Wanted to share this withe community.. We are now finalizing the new Super Orders readme, and the new version of Super Orders FULLY integrates this add-on (no need for a seperate install at all!!) we will include detailed instructions for those running Ty Package Tracker so that you can remove files that are no longer needed while retaining your existing tracking data..
Posted via Mobile Device
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
This will be great. How is it coming?
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
Waiting on the updated Super Orders add-on with the Ty Tracker to install it on the site.
Any ETA or add-on location?
-
Re: Track Package from FedEx, UPS, Postal, DHL, etc..
love the mod very useful just wondered if any one new how to change the admin drop down admin> customers> add tracking id i would like it to say ship order just to make it a bit simpler for our staff any help would be much appriciated