UPS Shipping Method allows you to get shipping rates from the UPS API. It requires that your server uses SimpleXML. The extension primarily works with measurements in Inches (in) and weight in Pounds (lbs), but other units can be converted automatically. Returned rates’ currency is based on the origin country in the shipping instance setting.
UPS can calculate quotes for both domestic and international parcels.
- Download the extension from your WooCommerce dashboard.
- Go to Plugins > Add New > Upload and select the ZIP file you just downloaded.
- Click Install Now, and then Activate.
More information at:.
- To create a UPS account and obtain your UPS API credentials, sign up at UPS Developer Kit.
- After signing in, in the Access and Administration section select Manage Access Keys, then Request New Access Key.
- Fill out the first two form fields as follows:
- I need an access key because: I was informed by a software vendor that I need to obtain an access key to share with them
- Software/Vendor Name: WooCommerce
- Continue filling out the rest of the form.
Go to: WooCommerce > Settings > Shipping > UPS.
- UPS User ID – Set by you during signup.
- UPS Password – Set by you during signup.
- UPS Access Key – Sent to you after signup.
- UPS Account Number – Sent to you after signup.
- Customer Classification – Determines what rates are returned. Note that Retail Rates will match the online calculator.
- Debug Mode – Enable/disable debug mode to show debugging information on your cart/checkout.
- Save changes.
- Go to: WooCommerce > Settings > Shipping.
- Select your Shipping Zone that you want to add the method to, and press the Add shipping method + button on the right
- Select UPS from the dropdown and press Add shipping method:
- Configure the settings:
Within a zone where the UPS shipping method is added, hover your mouse on UPS, and click edit:
- Method & Origin Settings
- Method Title – Name the shipping method. This is visible to customers.
- Origin City – Enter city you are sending from.
- Origin Postcode – Set to the postcode from where you ship. It is sent to the UPS API.
- Origin Country – Set to the country from where you ship. It is sent to the UPS API.
- Services and Packaging
- Services – Choose to rename and/or rearrange the order of UPS shipping rates.
- Offer Rates – Select whether to display all rates available or only the cheapest.
- Negotiated Rates – Enable negotiated rates or not. More at: Account-Specific Negotiated Rates. This must be approved by UPS, or the API returns an error. It is sent to the UPS API.
- Delivery Confirmation – Optionally you may charge customers for delivery confirmation. This just adds the specified amount to the returned rates.
- Parcel Packing Method – See below.
- UPS Packaging – You can select from a built-in list of standard UPS packaging to use.
- Custom Boxes – Here you can add custom box sizes to pack into.
- Advanced Options
- Origin Address – Sometimes you may need to enter the address for the sender/origin.
- Residential – Choose whether to indicate deliveries as residential or commercial addresses.
* Users are permitted to enter PO Boxes as a shipping address, even though UPS does not allow it.
- Insured value – Request Insurance to be included in UPS rates.
- Fallback – Enter a fallback amount for shipping, if no rates are found.
- Weight/Dimension Units – Only change this if you’re getting the “This measurement system is not valid for the selected country method.”
- Method & Origin Settings
There are two packing methods with UPS, and each affects the parcels you send to the API.
Each item in your cart (non-virtual) is sent to the UPS API. Quotes for all items are combined to calculate the final cost. Only the weight is required, but also entering product dimensions produces a more accurate quote. For even more accuracy, we recommend the box packer method.
To use this method, add a new product then scroll down to Product Data > Shipping to enter the product dimensions.
Using this method, you create your own custom box sizes in UPS Settings. The extension uses the weight/dimensions of products added to the cart, filling the custom box size from smallest to largest based on volume and size, then sends the number of boxes/size to the UPS API for a shipping estimate. Both product weight and dimensions are needed for this option to accurately calculate what boxes are needed.
Selecting this option you must follow the steps listed below for UPS Packaging or Custom Box Packing for this method to work.
UPS offers standard boxes for shipping. UPS Packaging:
Start typing the package you want to include, and it auto-populates the field for you.
The box packer included with this shipping method groups items into boxes that you define by height, width, length, weight, and max-weight. The packing is mainly volume based, but also considers item sizes.
- Go to: WooCommerce > Settings > Shipping.
- Select your Shipping Zone containing UPS, then click UPS
- Scroll down to Custom Boxes and select Add Box to set up box dimensions:
Outer dimensions are used for parcel dimensions and are passed to the API.
Inner dimensions are used for packing, and items should fit within these.
Box weight is the weight of the actual box, and is added to the weight of contents.
Max weight is the maximum weight your box can hold. This includes contents weight and box weight.
- Finds boxes that fit items being packed (uses H x W x D).
- Packs all fitting items into boxes (using volume).
- Uses the smallest box that fits 100% of items *or* uses the highest % packed box, and then passes unpacked items back and repeats the process.
- Packs unpackable items alone, using item dimensions.
- Returns all packed boxes.
To add handling fees to shipping calculations, you can use a Price Adjustment column in the Services section. Each UPS service can be increased or decreased (by adding the “-” sign) separately, using price adjustment columns in the row.
Use the Price Adjustment ($) column to add a flat amount to the shipping quote. In this example, the 3-Day Select and Ground shipping methods are increased by $3.50.
Use the Price Adjustment (%) to increase the shipping quote by a percentage. In this example, the 3-Day Select and Ground shipping methods are increased by 1% of the quote returned by UPS.
Customers get quotes, after inputting their address, from two places:
- Cart page – via the shipping calculator
- Checkout page – via the shipping and billing forms
These services are included with the UPS Shipping extension:
2nd Day Air
2nd Day Air AM
Next Day Air
Next Day Air Saver
Next Day Air Early AM
Worldwide Express Plus
Worldwide Expedited Standard
Yes. Multiple UPS methods in the same zone with different origin addresses will return the appropriate rates for each method. Multiple API requests are made and each origin address is used.
No it does not. It provides the integration between UPS and WooCommerce, so you can calculate shipping rates for customers and collect the correct amount of payment in checkout.
You get shipping labels and tracking numbers directly from UPS or can buy a different plugin to handle that for you.
UPS will use the currency that is enabled on your account. So if your site uses a different currency then the one which is set on the account, the rates won’t be returned. If the debug setting is enabled this will be indicated with a warning like:
[UPS] Rate for Standard (UPS) is in USD but store currency is EUR.
If you need to convert these rates to the correct currency we would suggest using the Multi Currency extension and setting up a conversion rate for both the account currency and the store currency.
- Confirm that your API credentials are correct.
- Enable development mode, or turn on WP_DEBUG to see debugging information on the cart page. This often reveals the issue.
- Check that your products have sizes and weights set – without this, the calculation cannot be performed.
If you would like to remove UPS as a shipping option for some shipping classes you can use the WooCommerce Conditional Shipping and Payments extension.
Or you can use code to do this.
You can add the following code to your
functions.php. You need to change shipping classes used on the 14th line:
Have a question before you buy? Please fill out this pre-sales form.
Already purchased and need some assistance? Get in touch with a Happiness Engineer via the Help Desk.