Support » Plugin: WooCommerce Shipping & Tax » USPS Shipping Price Calculation

  • Resolved areimus



    The shipping price calculator isn’t returning the correct values for me. Any idea what’s wrong? Let me know if there’s any other info you need, thank you.

    The shipping prices calculated and displayed are:
    priority mail express international : 164.75
    priority mail international: 117.25


    4 items in my basket:
    1. dimensions: 13″ x 10″ x 2″ (1.5 lbs)
    2. dimensions: 13″ x 10″ x .5″ (.5 lbs)
    3. dimensions: 13″ x 10″ x .5″ (.5 lbs)
    4. dimensions: 11″ x 7″ x 3″ (.5lbs)
    dimensions = L X W X H

    Destination country: Japan
    Origin zip: 90640

    Shipping Services enabled:
    1. First-Class Mail – International Large Envelope
    1. Priority Mail Express International
    2. Priority Mail International
    3. Priority Mail International Large Flat Rate Box
    4. Priority Mail International Medium Flat Rate Box (Top Loading)

    There are no price adjustments on any of the services above.

    Fallback rate: 0

    Options enabled:
    1. Show all available rates
    2. Commercial Rates
    3. Pack items together, in as few packages as possible.

    I’ve also created 2 Packages in the Shipping settings:
    Large flat rate box, and medium flat rate box according to the dimensions towards the bottom of this page

    I’ve also tried enabling shipping debug, and clearing any table rate cache.


    Also tried the USPS API directly, the request i used is below (USERID ommitted).

    I received a response of:

    Priority Mail International: 79.70
    Priority Mail Express International: 56.90

    These prices are correct, according to the table rates on the USPS website.<IntlRateV2Request USERID=”xxxx”>
    <Package ID=”0″>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter areimus


    i’m using version 1.12.1 btw

    Plugin Contributor Marcin


    Hi @areimus,

    If you want to use flat rate boxes, there’s no need to add them in the packaging manager. The packages defined there would only be used for the non-flat rate calculation. Checking the flat rate services in the USPS shipping method settings should be enough.

    Looks like you have done this and selected a Large Flat Rate box and Medium Flat Rate Box (Top Loading). According to the definitions at it’s not possible to pack the items from your cart to either of these boxes – their max lengths are 12″ and 11″ respectively, while your items are 13″ long.

    You could select Medium Flat Rate Box (Side Loading), but for this cart combination it would fit only first 3 items, while the fourth one would have to be shipped in a separate package.

    If you want to see how WooCommerce Services has packed your items, you can enable Debug in WooCommerce->Status->WooCommerce Services. You will then see the packaging details on your checkout page.

    Thread Starter areimus


    Hi @robobot3000,

    Thanks a lot for the explanation, it works. Also that debug mode for Woocommerce Services is exactly what i was looking for

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘USPS Shipping Price Calculation’ is closed to new replies.