The extension retrieves service commitment information from the USPS API through the SvcCommitments field in the API response.
When the USPS API returns service commitment data that contains “days” information, the extension automatically appends this to the shipping rate name. (Ex: First Class (approximately 4-7 business days) ).
This isn’t always accurate, especially for international shipping.
It would be good to have the option to disable the estimated time for delivery.
Open
Last updated: June 27, 2025
Log in to comment on this feature request.
Conditional to turn off/on needed here:
if ( ! empty( $svc_commitment ) && strstr( $svc_commitment, ‘days’ ) ) {
$rate_name .= ‘ (‘ . current( explode( ‘days’, $svc_commitment ) ) . ‘ days)’;
}
In this file:
woocommerce-shipping-usps/includes/api/legacy/class-legacy-api.php
Lines 945-947