Magento Tutorials

Magento 2 Shipping Carriers – How to Configure UPS Carrier

Hello Magento Friends,

In today’s Magento Tutorial, we will discuss Magento 2 Shipping Carriers – How to Configure UPS Carrier. Previously I have discussed configuring different shipping carriers to Magento 2 like FedEx, DHL, and USPS.

United Parcel Services (UPS) offers to deliver products to domestic and international locations via land and air to over 220 countries. So UPS is an adaptable shipping service for E-commerce merchants. UPS will help to smoothly deliver goods to any destination. So let’s learn How to Configure UPS Carrier for Magento 2.

Exclude these steps and integrate Order Tracking Extension for Magento 2 to make the shipping process of your Magento 2 store flexible and thus increase the customer experience.  

Steps to Configure UPS Carrier for Magento 2:

Step 1: Create a UPS Shipping Account

Before offering the shipping method to your customers, you must open a UPS Shipping Account.

Step 2: Enable UPS for your Magento 2 Store

  • From the Admin Panel, go to Stores > Settings > Configuration.
  • From the left panel, expand Sales and choose Shipping Methods.
  • Now, enlarge the UPS section.
  • Enabled for Checkout – Choose Yes to allow UPS shipping method to customers.

UPS Type – If you set UPS type to United Parcel Service XML, do the following

  • Enter the UPS account information to Access License Number, User ID, and Password.
  • Live Account – Choose Yes to run UPS in a production mode and offer UPS shipping method to customers. If set to No, it will run in test mode.
  • Gateway XML URL – Confirm the URL that is needed to send requests by an XML file.
  • Mode – Live Mode sends the data to the UPS shipping system over a secured connection, while Development Mode does not send data over a secured connection.
  • Origin of the Shipment – Select the region from where the shipment originates.
  • Title – Give the title of the shipping method to be displayed at the checkout.
  • Enable Negotiated Rates – If you have created special rates with UPS, set it to Yes. Then you have to enter a 6 digit UPS Shipper Number.
  • Request Tax-Inclusive Rate – When set to Yes, taxes are included in the rate.

UPS Type – If you set UPS type to United Parcel Service, do the following

  • Live Account – Choose Yes to run UPS in a production mode and offer UPS shipping method to customers. If set to No, it will run in test mode.
  • Gateway URL – Confirm the URL that is needed to calculate UPS shipping rates.
  • Title – Give the title of the shipping method to be displayed at the checkout.

Step 3: Configure the Container Description

  • Packages Request Type – Choose either from Divide to equal weight (one request) or Use origin weight (few requests).
  • Container – Select the container for the type of packaging to be used for shipment.
  • Destination Type – Residential is mostly used for B2C and Commercial is used for B2B.
  • Weight Unit – Set the unit as LBS or KGS.
  • Maximum Package Weight – Set the maximum weight allowed for the package.
  • Pickup Method – Select the pickup method from the available options.
  • Minimum Package Weight – Set the minimum weight allowed for the package.

Step 4: Configure Handling Fee

  • Calculate Handling Fee – Set the calculation of the handling fee as fixed or percent method.
  • Handling Applied – Set the way to apply handling fee as: per order or per package.
  • Handling Fee – Set the handling fee amount.

Step 5: Allocate Allowed Methods and Applicable Countries

  • Allowed Methods – Select the allowed methods for customers to choose from.
  • Free Method – Select the appropriate method to offer free shipping else select None.
  • Enable Free Shipping Threshold – Enable it to set minimum order to enjoy free shipping with UPS then enter the amount in the Free Shipping Amount Threshold field.
  • Displayed Error Message – Enter your custom message or use the default message when the UPS shipping method is not available.

  • Ship to Applicable Countries – Select All Allowed Countries or Specific Countries to ship using UPS.
  • Ship to Specific Countries – Select countries if the shipment is set to specific countries.
  • Show Method if Not Applicable – Select whether to shoe all applicable methods for UPS shipment or not.
  • Debug – Select Yes, to create a log file with all details for the UPS shipment for your store.
  • Order – Set the sequence for the UPS shipment method to be displayed with the other shipment methods. 0 means first.

At last, Save Config.

Step 6: Setup Origin Address for Shipping

  • Now, navigate to Stores > Settings > Configuration.
  • Expand the Sales option from the left panel and select Shipping Settings.
  • Enlarge Origin and fill in the origin address details.

When done, click Save Config.

Wrap up:

Hence, with the help of the above steps, you can easily configure UPS Carrier to Magento 2. In case of any doubts and queries, let me know in the comment part and I will be quick to respond. Share the article with your Magento friends and colleagues. Stay tuned with us for further updates.

Happy Reading!

Click to rate this post!
[Total: 3 Average: 5]
Gaurav Jain

Gaurav Jain is Co-Founder and Adobe Certified Expert-Magento Commerce Business Practitioner. Being Computer Engineer?‍? and possessing Extensive Marketing skills he handles all kinds of customer Queries and his Happy? & Helping? Nature makes customer's day Delightful. When he isn’t working, you’ll find Gaurav Reading on Books? or Traveling?. Also, he is Speaker at Magento Meetups.

Recent Posts

Improving Error Handling and Transition Management in Remix with useRouteError and useViewTransitionState

In modern web development, seamless navigation and state management are crucial for delivering a smooth…

6 days ago

Magento Open Source 2.4.8-Beta Release Notes

Magento Open Source 2.4.8 beta version released on October  8, 2024. The latest release of…

1 week ago

How to Create Catalog Price Rule in Magento 2 Programmatically?

Hello Magento Friends, Creating catalog price rules programmatically in Magento 2 can be a valuable…

1 week ago

Top 10 Tips to Hire Shopify Developers

As the world of eCommerce continues to thrive, Shopify has become one of the most…

2 weeks ago

Managing Browser Events and Navigation in Shopify Remix: useBeforeUnload, useHref, and useLocation Hooks

Shopify Remix is an innovative framework that provides a streamlined experience for building fast, dynamic,…

2 weeks ago

Ultimate Guide to Hiring a Top Shopify Development Agency

Building a successful eCommerce store requires expertise, and for many businesses, Shopify has become the…

2 weeks ago