Airborne Express Quotes using ShipIT XML API
Requirements:
- cURL
==============================
Domestic shipping quotes for Airborne using the ShipIT XML API. After installation read the docs for full details.
Legend: 
Download

Report
Added "Own Packaging" as an option to "Package" and "Letter" and renamed "Package" to "DHL Package" which is what it is. Different rates it is you see....
If you don't want to use my patched file, flip the line with MODULE_SHIPPING_AIRBORNE_PACKAGE in it to:
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Shipment Type', 'MODULE_SHIPPING_AIRBORNE_PACKAGE', 'O', 'Select the type of shipment:<br><br>O - Own Packaging<br>P - DHL Package<br>L - Letter', '6', '0', 'tep_cfg_select_option(array('O', 'P', 'L'), ', now())");
Made sure that international address gets encoded for ShipIT's xml-api, making addresses with non-ascii characters work.
I did a lot of playing around to stop that darn "Array" being entered for when I wanted multiple shipping methods for this contribution and it turns out the solution was a very simple database entry edit.
This will fix domestic rates but I am unable to get the International Shipping quotes to work. But, this is a start for all you domestic shippers.
I like the cheap shipping options with DHL so this module really came in handy. There was a quick fix to DHL returning a zero value (or NULL value) for one of their shipping costs. This is a small revision to fix this problem. All credit given for previous work on this fix, and the module to the people whom have contributed before. Credit given to "beachglassdirect.com" whom found this bug and contributed to the Fix in Revision 1.
I downloaded the last copy and e-mailed DHL for my international shipping key and they said that osCommerce was not certified for use with International Shipping. After a lot of replies they finally gave up and certified it for us. To get your international key you must send an e-mail to xmlrequests@dhl.com
This is a copy of the last file. Credit to those below,
Previous version wouldn't give a quote with the shipping estimator if the user wasn't logged in because it couldn't handle a US quote with just a zip code. Added zip_to_state lookup so quote can function. Skips City element in XML request if empty since it's optional anyway. Unfortunately it still doesn't work for estimating for Canada without a full address. Perhaps fails for other countries too. Also added separate quote title so user can see a different label than administrators see.
Adds configuration settings for dutiable, who pays duty,
set default shipment description, made printing of box weights
optional in quote, fixed rounding of weights and dimensions.
Complete package
Started with the 1.41a files and added in support for the ShipIT 2.1 XML API. This will allow access to both domestic and international quotes.
For those of you running PHP5 for windows, with the cURL extension enabled, this will fix no response issues.
What I did was include a necessary file that is found in the precompiled executable version of the official cURL distribution. This file is used for authenticating SSL certificates. If the directions are followed, the SSL certificates from DHL won't be rejected.
Furthermore, I've added a conditional statement, where if an individual doesn't (or can't) follow the directions the SSL verification is skipped.
This should solve any no-response issues people were having.
Added the Fix for the module returning $0.00 for a shipping charge. This fix was posted to a forum on 11/28/04 but some how never made it in to the distribution. We added this fix to the package and included a Zero Dollar fix.txt explaining the change.
This is a full install package complete with the Authorize.net fix applied.
Forum post ref. this issue:
http://forums.oscommerce.com/index.php?showtopic=82098&st=60
Thanks Allen for the quick fix
Got an error :
Fatal error: Cannot redeclare _selectoptions() (previously declared in /home/shopsbs/public_html/store/includes/modules/payment/authorizenet.php:346) in /home/shopsbs/public_html/store/includes/modules/shipping/dhlairborne.php on line 568
so changed the _selectOptions function to _selectOptions3254 to avoid redeclaration.
This is a FULL Install with the above change
Had issue with shipping methods that were not available appearing in the checkout. For example, if a customer lives in an area where dhl does not provide Saturday delivery, the method would still appear at checkout without a price associated. The customer would then be able to select the method and basically get free shipping. This is only the dhlairborne.php file and should replace your current file in /includes/modules/shipping.
CHANGELOG
=========================================
v1.400 - 2004-11-01
- Adds shipping city to fix recent DHL/Airborne API errors.
CHANGELOG
=========================================
v1.320 - 2004-11-01
- Fixed a small bug with the "help" link being on every input when editing the module settings.
- Added debugging capabilities to capture the request and response XML
CHANGELOG
=========================================
v1.310 - 2004-10-29
- Updated DHL/Airborne signup forms for osCommerce users
- Updated module documentation
CHANGELOG
=======================================
v1.3 - 2004-02-13
- Update for changes to Airborne & DHL merged online systems
- Improved cURL handling
(sorry for the delay in releasing this) *oops*
CHANGELOG
v1.2 - 2004-01-28
- Fixed problems with cURL
CHANGELOG
==============================================================
v1.1 - 8/20/2003 (thanks to Axe for notification of these bugs)
- Fixed bug where rate return would fail if the shipment date was the weekend.
- Added option for either set shipment day (Monday-Friday) or ship in x number of days (roll to Monday if x number of days lands on Saturday or Sunday).
- Fixed bug where module failed if other shipping modules were also in use.
- Added necessary Airborne Customer Agreement to the package.
* just forgot to include the Airborne customer agreement form *
Small fix. Forgot to include the file admin/images/airborne_logo.gif
Airborne Express Quotes using ShipIT XML API
Requirements:
- cURL
==============================
Domestic shipping quotes for Airborne using the ShipIT XML API. After installation read the docs for full details.