UPS XML Shipping Module for osCommerce V2.3.1

Recently trying to add UPS shipping support for my new modified osCommerce (v2.3.1) site, but the contribution found on osCommerce website or recommended by UPS is not all ready for V2.3.1 . Along the way during the installation it did give me some troubles, some of them related to my developing environment (windows+xampp) and others need to be improved, but pretty much most of the things worked just fine.

Some special notes here for the modifications:

  • curl support has to be enabled:
    From followings files from your xampp folder:
    find line ;extension=php_curl.dll and remove the ‘;’ (semi-colon) before this line in each file and save, remember to start your apache server
  • Mercury email server need to enabled, otherwise turn off the “Email UPS errors”.
  • uncomment following lines from includes/modules/shipping/upsxml.php
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
    otherwise it gave me an error in my testing environment:
    Error from cURL: Error [60]: SSL certificate problem, verify that the CA cert is OK. Details:
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed experienced by customer with id 1 on 2012-10-01 10:17:50

The file, “admin/packaging.php”, has been modified to work with osCommerce V2.3.1; the file from original contribution is for osCommerce V2.2. You can download the modification from Please note that in this modification, product package split and boxes used options from the original contribution are not included.

Obviously, in order to test the UPS shipping module, you will need a testing account from UPS.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s