Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Commerce USPS

2,009 sites Security covered Drupal 9–11 Commerce ecosystem
View on drupal.org

This module integrates with Drupal Commerce to provide dynamic USPS shipping rate calculations for US-based stores. It supports a variety of domestic and international USPS shipping methods, including Priority Mail, Express Mail, and First-Class options.

Attention Users of 7.x-1.x-dev

USPS has changed their API causing most rate requests with this module to fail. Please apply the patch in #1937062: Code clean up and prepare for a full release. or download the new 7.x-2.x-dev release when it becomes available.

Steps to follow when upgrading or applying the patch

  • Download the 7.x-2.x-dev release or apply the patch in #1937062: Code clean up and prepare for a full release.
  • Run update.php
  • Clear all caches
  • Visit admin/commerce/config/shipping/methods/usps/edit to verify your settings and shipping methods
  • Check (and possibly recreate) any rules components that used the old shipping method names
  • Re-create any markups using rules components (the markup feature has been removed)

Overview

This module provides USPS shipping calculations for Drupal Commerce by extending the Commerce Shipping API. This module should be used by those that want to provide dynamic USPS shipping rates on their US based Drupal Commerce sites.

Requirements

Supported Features

The following domestic shipping methods are currently supported:

  • USPS First Class
  • USPS Priority Mail
  • USPS Express Mail
  • USPS Standard Post
  • USPS Media Mail
  • USPS Library Mail

The following international shipping methods are supported:

  • USPS Priority Mail Express International
  • USPS Priority Mail International
  • USPS Global Express Guaranteedf
  • USPS Priority Mail International Small Flat Rate Box
  • USPS Priority Mail International Medium Flat Rate Box
  • USPS Priority Mail International Large Flat Rate Box
  • USPS First-Class Mail International Package
  • USPS Priority Mail Express International Flat Rate Boxes

Installation and Configuration

Please refer to the README.txt file for additional information about how this module works and how to set it up.

1. Install and enable the module and all dependencies.

2. Add dimensions and weight fields (new field types via the Commerce Physical module) to all shippable product types.

3. Populate dimensions and weight fields for all products.

4. Configure the USPS settings (admin/commerce/config/shipping/methods/usps/edit). You'll need to create USPS Web Tools account and obtain a username https://secure.shippingapis.com/registration/ and call USPS to have the account moved into production (tell them you are using 3rd party software).

History

This module is a fork of the original commerce shipping usps module following the naming convention described here: http://drupal.org/node/1348088#comment-5308572.

Current Limitations

The 7.x-2.x-dev branch was a rush release to fix a critical bug exposed by updates to the USPS api. This branch has not been thoroughly tested, but should solve the 7.x-1.x problem and be able to collect domestic and international rates for the services above.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Apr 2025
Latest release
1 month ago
Releases (12 mo)
3 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.0.0-beta2 Pre-release 10–11 Jul 23, 2026
2.0.0-beta1 Pre-release 10–11 Jan 27, 2026
2.x-dev Dev 10–11 Dec 26, 2025
8.x-1.8 Stable 9–11 Apr 18, 2025