How to Configure USPS in Magento 2 Stores?

Founded in 1775 as an independent agency of the United States government, the United States Postal Service has developed themselves to become one of the biggest freight companies all over the world. USPS offers both domestic and international shipping services by land and air to more than 220 countries. This article will guide you clearly how to set up this shipping carriers in the backend configuration.

STEP 1: Open a USPS Shipping Account

First of all, admin needs to already have a USPS Web Tools shipping account with User ID and a URL to the USPS Test server.

STEP 2: Enable USPS for Magento 2 Stores

  1. Look for Stores on the left-side bar of Admin homepage. Click on Configuration below
  2. In Sales section, choose Shipping Methods, scroll down and find
  3. Expand this section and complete the configuration as following instructions:

a. Choose “Yes” at Enabled for Checkout

b. In the Gateway URL field, a URL linked to USPS shipping rate calculation is required. Normally, this field is preset by default and does not need to be changed while using.

c. In the Title field, enter or paste the name which will appear on screen to choose when checkout.

d. Register your account credentials in the corresponding fields: Users ID, Password of USPS Shipping Account.

e. In the Mode field, choose “Development” to run USPS in a test environment. If everything goes well, you can transform to “Live”, which will allow to run USPS in real Magento 2 transactions.


USPS Account Settings

STEP 3: Complete the Container Description

  1. In the Packages Request Type filed, choose “Divide to Equal Weight” if products in Magento 2 stores have equal weight, therefore admin can submit multiple packages in one request. If not, choose “Use Origin Weight” to submit multiple separate requests.
  2. In the Container section, admin needs to choose their regular packaging type. There are 5 options for USPS Shipping: Variable, Flat-Rate Box, Flat-Rate Envelope, Rectangular, Non-Rectangular.
  3. In the Size section, admin chooses their typical packaging size. There are 3 options there: Regular, Large, Oversize.
  4. The Machinable field is to determine whether you want your package to be processed manually or by a machine. Choose your corresponding option there: “Yes” to use a machine and “No” to do it yourself.
  5. In the Maximum Package Weight section, enter the maximum number advised by USPS

USPS Packaging Settings

STEP 4: Set up Handling Fees

  1. The Calculate Handling Fee section is to determine calculation methods to control handling fees. There are 2 options for admin to choose:
  • Fixed
  • Percent
  1. In the Handling Applied section, admin decides to apply handling fee for each order or for each package. There are 2 options corresponding to them.
  2. In the Handling Fee section, admin needs to enter the rate based on chosen Calculate Handling Fee selection. If admin chooses “Percent”, enter the number without “%” symbol. For example: if the Handling Fee is 1%, enter “0.01”. If admin chooses “Fixed”, enter the number of fee there.


USPS Handling Fee

STEP 5: Modify Particular Shipping Methods and Applicable Countries

  1. In the Allowed Methods section, a list of USPS shipping methods will appear. Admin can choose to offer multiple options by holding the Ctrl button. These methods will be shown under USPS Shipping while checkout.
  2. In the Free Method section, choose “None” if you do not want to offer free shipping for any order in Magento 2 stores. If yes, set the list to the method you want to use. Then, in the Free Shipping Amount Threshold section, enter the minimum value for each free shipping order.
  3. The Display Error Message section is to create an alert message to notify your customer when USPS is unavailable when checkout. There is a default message by Magento. However, admin can modify by entering your own message there.

USPS
USPS Allowed Methods

  1. In the Ship to Applicable Countries section, choose “Specific Countries” and select from the list each country where USPS is available, or tap “All Allowed Countries” to offer worldwide shipping by USPS.
  2. In the Show Method if Not Applicable section, choose “Yes” to show USPS Shipping all the time (whether it is available or not). If not, choose “No” to show only when it can be used.
  3. In case you want to have a log file that contains information about all your shipments via USPS, choose “Yes” in the Debug
  4. In the Sort Order box, enter the number to arrange the order of USPS option in a list of available methods. For example: 0 for the first, 1 for the second, etc.
  5. In the Free Shipping Amount Threshold section, choose “Enable” to determine that free shipping order must meet a minimum amount.
  6. Click Save Config to complete.

USPS

USPS Applicable Countries

In short, here are all the details to Configure USPS in Magento 2 Stores we want to share with you. If you want to add or erase any item in this FAQ list, feel free to contact us. Don’t forget to Like, Share, and Subscribe to Magestandard for more informative Magento extension review articles.

Leave a Reply

Your email address will not be published. Required fields are marked *