Quote from: abolabo on July 21, 2026, 04:01:49 AMQuote from: Heemet on July 20, 2026, 11:13:05 PMHello Basara,
If you ship via PayPal, the USPS rates are commercial rates. However, the default USPS extension in AbanteCart returns retail rates, which are higher. Thus, if a customer checks-out and selects a USPS shipping option, he will be overcharged at the retail rate.
It appears that the USPS API allows for the API call to request commercial rates. See here:
https://github.com/USPS/api-examples
The field is "priceType": "COMMERCIAL"
It seems that this would be an easy change in the USPS extension in AbanteCart, but I can't figure out where to set this field.
Thanks,
Peter
please change manually file (via cPanel filemanager)
public_html/extensions/usps/storefront/model/extension/usps.php
See lines 514 and 545.
Please let us know about result.
Hi adolabo,
Thanks for pointing me in the direction of where the rate type is set in rate query. I made the change to 'priceType' => 'COMMERCIAL' and now I'm seeing appropriate rates. Thank you!
One idea for a change to the USPS extension would be to provide a toggle in the extension interface to allow the user to select whether commercial rates are used by the store.
Regards,
Peter
