Posts tagged ‘UPS’

So, your setting up Magento and need to use the UPS rates.  By default, Magento comes with it’s own UPS “estimator”, but that won’t match a prenegotiated rate.  Magento “hides” this behind a special dropdown named “United Parcel Service XML” in the UPS section of the “Shipping Settings” Here’s the steps to setting up the UPS login:

  1. Verify you have a UPS.com “XML Access Key”, which is NOT a “Developers Key”.  If not, you’ll have to have one (contact your UPS rep to generate this…bummer, I know).
  2. In the Magento Admin, click System → Configuration → Shipping Methods → UPS
  3. Key Settings:
    1. Enabled: Yes
    2. UPS type: United Parcel Service XML
    3. Access license number: YOUR ACCESS KEY
    4. Password: Your UPS Account Password
    5. UserId: Your UPS User ID
    6. Gateway XML URL: https://onlinetools.ups.com/ups.app/xml/Rate
    7. Shipper Number: Your Shipping Number (6 Digits)
    8. Tracking XML URL: https://onlinetools.ups.com/ups.app/xml/Track

Once all the required info is in place, you should have your custom UPS rates.

**Update**

After working in this, it appears that there may be an issue with the SSL UPS uses, and thusly, the curl option will fail.  Never fear, here is the solution (though I do not like it b/c it’s going against SSL philosophy, and you’ll have to remember this change for future upgrades)

Copy the file “/app/code/core/Mage/Usa/Model/Shipping/Carrier/Ups.php” to “/app/code/local/Mage/Usa/Model/Shipping/Carrier/Ups.php” and find the following code (there should be two instances):

$xmlResponse = curl_exec ($ch);

And add this right before it:

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

**Update 2**

Also, be sure to actually select which services you wish to be allowed for shipping. Having no shipping methods available while having correct information entered will cause the same error described above.