## FedEx Automated Labels ##
This oscommerce contribution, when properly configured in a shop with a valid
FedEx account, provides the following:
- From the admin section, a ship request can be sent directly to FedEx for any
number of orders.
- A pickup date can be scheduled
- Shipment and packaging type can be specified
- If an order requires multiple packages, this can be specified,
along with the weight for the individual packages
- When a valid shipment request is made, the FedEx label is returned
(multiple labels are returned for multi-piece shipments)
- Information about the shipment is written to a shipping manifest (new table,
shipping_manifest)
- Through the admin section, the administrator can:
-- cancel the shipment
-- track the shipment
-- view and print the label
-- view and print the shipping manifest for a selectable date
-- purge the shipping manifest data for the current date
- If an order has been shipped, the customer will see an option to "track this shipment"
in the order history. Order tracking is kept onsite, they won't be sent to fedex.com.
Legend: 
Download

Report
- added strtotime() fix from last upload
- added little blue 'F' to all the buttons to make them stick out better in the Admin order area.
no other changes
full package
To remove error message 'Warning: strtotime() [function.strtotime]: Called with an empty time parameter. in /home/epigente/public_html/catalog/track_fedex.php on line xxx' when tracking packages that haven't been delivered yet:
catalog/admin/track_fedex.php
On line ~118 in //format date, insert:
if ($signed_by)
So that it looks like:
// format date
if ($signed_by)
$delivery_date = strtotime($delivery_date);
$status_note = $track_Ret['1159-'.$i.'-1'];
catalog/track_fedex.php
On line ~128 in //format date, insert:
if ($signed_by)
So that it looks like:
// format date
if ($signed_by)
$delivery_date = strtotime($delivery_date);
$status_note = $track_Ret['1159-'.$i.'-1'];
There are no files to download
Printing to FedEx Thermal Label printer is now supported.
Has been tested on Zebra LP2844.
Printing in v2.0 is also defaulted to Thermal instead of Laser in v1.x. Please note that the Page Setup for Margins must be changed to all zeros before printing to the thermal printer.
This Full Package is built upon full package of v1.2b with contributions up to mthierfelder.
For upgraders from 1.2.x to 2.0:
Backup
catalog/admin/ship_fedex.php
catalog/admin/fedex_popup.php
Add the differences in the following 3 files:
catalog/admin/ship_fedex.php
catalog/admin/fedex_popup.php
catalog/admin/includes/english/ship_fedex.php
Copy the new files:
catalog/admin/fedex_popup_laser.php
catalog/admin/fedex_popup_thermal.php
In implementing a Canadian based store with the the Fedex Real Time Quotes and the FedEx Automated Labels there were 3 noteworthy modifications that I had to complete. These fixes would be important for anyone who ships to Canada in addition to those of us who ship from within.
The first is documented already for realtime quotes, a problem with the insurance value currency for stores using non USD.
The second is adding abbreviations for Canadian Provinces for Automated Labels.
The third is a function to remove spaces from postal codes (PCs are commonly written with a space but Fedex does not allow a space in the API).
FedEx recently changed the URL structure used to return tracking results. Simply change one item in /admin/includes/english/ship_fedex.php, from this:
define('URL_TO_TRACK1', 'http://www.fedex.com/cgi-bin/tracking?action=track&tracknumbers=');
to this:
define('URL_TO_TRACK1', 'http://www.fedex.com/Tracking?action=track&tracknumbers=');
Now your customers won't see the annoying redirect screen when they try to track the package from the email link.
Allows you to see the
'Ship Fedex', 'Cancel Shipment', 'FedEx Label' button on the admin 'Edit Orders' screen.
Just replace 1 line in catalog/admin/orders.php.
Depending on your way of operation, this simple tweak can save you lots of time and hassle.
Requirements:
Intended for v1.2b and below.
NOT a full package. Only install instructions for the tweak is attached.
This is a repackage of the package below. There were still a couple of files missing (mainly the admin buttons). I compiled this as I did a first time install, so I am thinking it should be all there now.
Thanks to everyone who helped in this contribution, it is going to make my life so much better!
NOTE: There are no file edits in this version. Only addition of missing files and a cleanup of the install.txt for ease of reading.
- Repacked file with all the needed files that have slowly been left out in more and more in each version since 1.06. Should be helpful for new installer.
- Added logic so it automatically defaults to the next day shipping if after 5PM or your defined time & also it will automatically set packages you are trying to ship on weekends to ship on Monday
- New feature: detects if there is a company name, if so defaults to ground, save you cash, or if no company name it defaults to home delivery so you are not pentalized by FedEx.
- Changed line 310 in fedexdc.php to make it more compatible, it was causing errors on my newer sever and PHP.
FULL VERSION
SUPPORT FORUM:
http://forums.oscommerce.com/index.php?showtopic=101186
Sorry, forgot that the shipping_manifest in the database needed to be updated as well. Here is new package with changes to the database.
This package includes 1 file, ship_fedex.php. In this file I have added Saturday Delivery, Package Dimensions, Hold At Location, Ground Shipping, Ground Shipping Auto Proof of Delivery.
I updated "homewetbar's" addition with the fileds to show the adddress of customer and the "ship to" fields of the ship_fedex.php file.
Completely repackaged.
Enjoy!
- New feature displays ship to and bill to name so you can easily identify packages.
- New feature displays chosen ship method.
- Fix to calculations for weight now displays weight properly.
- Fixed invoice is now transmitted to FedEx in invoice field instead of PO field. This helps when you have to search your fedex transaction history.
- New Box for declared value (previously it automatically pluged in the order total, now you can change it to avoid heafty FedEx fees for orders over $100)
Actually, this is my fix that I gave to yeah,yeah,yeah.
in fedexdc.php
comment this line to look like this.
//if (empty($match[1])) continue;
Credit goes to Jim mintz not to yeah,yeah,yeah
Bug Fix: Label broken image error (thanks to YeahYeahYeah)
Enhancement: Signature Requirement Field (thanks to AirGrinder)
Zip package contains only 3 files. Patch directly on top of v1.07.
Files changed:
readme.txt
catalog/admin/ship_fedex.php
catalog/admin/includes/fedexdc.php
04/30/2005 v1.07(by x6i)
-Fixed critical Cancel Shipment error in ship_fedex.php
When upgrading from v1.05 just replace the following file:
/admin/ship_fedex.php
Complete rezipped package & updated readme.
The following enhancements are added:
- Weight is now to the nearest 0.1lb instead of a whole number
- Title case for delivery name
The following bugs are fixed:
- Fields such as invoice # etc from v1.04 are now propagated correctly to 2nd screen
- Tare weight is now included
For people upgrading from v1.05,
a) replace: admin/ship_fedex.php
b) add: admin/includes/functions/ship_fedex.php
The above descriptions are updated in readme.txt and installation.txt.
Package is tested on vanila version of MS2.
Just screenshots of v1.05 in pdf. No php codes in zip file.
The screenshots will let you decide if this caters to your needs before you embark on your efforts.
This update has added the following features:
- New automatic send tracking email feature (with option to disable)
- Much faster shipping processing:
- defaulting Quantity, Weight and Shipping method values directly from the order
- if order consists of only 1 package (skips the 2nd screen and connects directly to Fedex)
- added Order Qty and Order Items description on shipping page for faster processing
- Updated Shipping Manifest report to exclude 'Express Shipping' (Credits to JD Fitch)
- Added new optional fields to label - Invoice#, Reference#, PO#, Dept Name (Credits to DropshipSites.com)
- Change pickup date default to same day instead of next day
- Corrected 2 bugs in abbreviation.php
- Includes orders.php but excludes configure.php from zip package
When upgrading from v1.03 or v1.04, replace the following 4 files:
a. catalog/admin/includes/boxes/reports.php
b. catalog/admin/includes/languages/english/ship_fedex.php
c. catalog/admin/includes/abbreviate.php
d. catalog/admin/ship_fedex.php
Added ability for the following optional fields to be added to the label:
- Invoice Number
- Reference Number
- Purchase Order Number
- Department Name
If upgrading from 1.03 simply replace admin/ship_fedex.php with the corresponding file in this package.
- Better package tracking messages
- Moved all language into includes/languages files, where it belongs
- Labels no longer display fedex number, show *** instead
- Phone numbers with spaces not a problem
- Added debugging to package tracking files
- Bug fixes, minor cleanup
Get support for this module at:
http://forums.oscommerce.com/index.php?showtopic=101186
todo:
- Remove depency on fedex realtime quote
- Add full administrative functions
- Allow oversized setting for each package in a multi-package shipment
- Uncommented all shipping options & updated install.txt to show where it's done
- Fixed bug in admin/track_fedex.php
Sorry - this version actually includes all the updates indicated below.
- Added usage information to readme.txt
- Corrected manifest date issue
- Removed personal server information from variables
## FedEx Automated Labels ##
This oscommerce contribution, when properly configured in a shop with a valid
FedEx account, provides the following:
- From the admin section, a ship request can be sent directly to FedEx for any
number of orders.
- A pickup date can be scheduled
- Shipment and packaging type can be specified
- If an order requires multiple packages, this can be specified,
along with the weight for the individual packages
- When a valid shipment request is made, the FedEx label is returned
(multiple labels are returned for multi-piece shipments)
- Information about the shipment is written to a shipping manifest (new table,
shipping_manifest)
- Through the admin section, the administrator can:
-- cancel the shipment
-- track the shipment
-- view and print the label
-- view and print the shipping manifest for a selectable date
-- purge the shipping manifest data for the current date
- If an order has been shipped, the customer will see an option to "track this shipment"
in the order history. Order tracking is kept onsite, they won't be sent to fedex.com.