The United States Postal Service is the independent postal service of United States government, offering domestic and international shipping services by land and air. This article provides step-by-step instructions for setting up the USPS shipping method.
For field descriptions, see Configuration: Shipping Methods - USPS
Step 1: Open a Shipping Account
- Open a USPS Web Tools account. After you complete the registration process, you will receive your User ID and a URL to the USPS test server.
- You can skip the testing phase, and contact their Internet Customer Care Center to request immediate activation to the production server. The ICCC will validate your store, and send you the URL to the production server.
To learn more about USPS Web Tools, see their Ecommerce API Technical Guides.
NOTE: It is recommend to contact USPS and immediately have them switch your account to production. Inform them that you are using Magento and then no testing is required.
USPS Tech Support: 1-800-344-7779 (7:00 AM to 11:00 PM EST daily)
Helpful article for more details: http://blog.asherbond.com/2009/06/18/magento-and-usps-shipping-method-is-currently-unavailable/
Step 2: Configure Your Store
- From the Admin panel, select Stores > Configuration.
- In the Configuration panel on the left, under Sales, click Shipping Methods.
- Click to expand the USPS section. Then, do the following:
- Set Enabled to Yes.
- The Gateway URL is needed to access USPS shipping rates. The field is preset by default, and normally does not need to be changed.
- Enter a Title for this shipping method that will appear during checkout.
- Enter the User ID for your USPS account.
- Set Container to the type of packaging usually used to ship products ordered for your store. Options include:
- Flat-Rate Box
- Flat-Rate Envelope
- In the Size list, select the option that describes the typical package shipped from your store:
- Set Machinable to one of the following:
- Yes: If your typical package can be processed by a machine.
- No: If your typical package must be processed manually.
- Enter the Maximum Package Weight that you will ship by USPS. By default, this field is set to 70. You can leave the value as it is unless you have special arrangements with USPS.
Note: Consult your shipping carrier for maximum supported shipping weight.
- In the Calculate Handling Fee list, select one of the following methods:
- Fixed Fee
- The handling fee is an additional charge that is added to the shipping cost. It is optional and not shown to the customer.
- In the Handling Applied list, select one of the following methods:
- Per Order
- Per Package
- In the Handling Fee field, enter the handling fee value either a fixed amount or percentage depending on which you selected in Calculate Handling Fee field.
- In the Allowed Methods list, select each USPS offered to your customers. The methods will appear under USPS during checkout. (Hold the Ctrl key down to select multiple options).
- Set the Free Method list to the method you want to use for free shipping. You may also select None.
- Set the Free Shipping with Minimum Order Amount to one of the following:
Enable: To provide free shipping for orders that meet the minimum monetary amount specified.
Then, in the field below, enter the Minimum Order Amount for Free Shipping.
- Disable: To not provide free shipping based on a minimum order amount.
- Enable: To provide free shipping for orders that meet the minimum monetary amount specified.
- The Displayed Error Message text box is preset with a default message. You can either leave this message or you can type the message you want your customers to see if USPS shipping becomes unavailable.
- Set Ship to Applicable Countries to one of the following:
- All Allowed Countries
- Specific Countries
If applicable, set Ship to Specific Countries to each country where your customers are allowed to ship by USPS. (Hold the Ctrl key down to select multiple options).
- Set Show Method if Not Applicable to one of the following:
- Yes: To list all USPS shipping methods to customers, regardless of their availability.
- No: To list only the methods which are currently available.
- Set Debug to Yes to create a log file with the details of all USPS activity relatted to your store.
- In the Sort Order field, enter a numeric value to determine the order in which USPS shipping method appears in the list with other shipping methods during checkout. The highest value is 0, which will put it at the top of the list.
- When complete, click the Save Config button to save your settings.