Huh??? USPS module not combining "All in one" shipping

Posts: 6
Joined: 07/08/2008

I recently installed UC 1.4 on a test site, and I've got the USPS shipping quotes working great for ONE item, but for more than one, it's just multiplying the shipping cost by the number of items. It's as if I had it set for "Each in its own package", but it's actually set for "All in one". (Changing that setting makes no difference.)

When I enable debugging, it shows the xml string returned by USPS, and it has the shipping rates repeated once for each item (<Package ID="0">, <Package ID="1">, <Package ID="2">, etc.) instead of one package. Each <Package> has the <Pounds> and <Ounces> of a single item; the weight is not combined.

(BTW: it would be nice if the debugger also showed the query string sent by UC.)

I don't have enough coding experience to track down the cause of this. Can someone help me get started?

In addition to the required modules, here's the optional UC modules I've enabled:

UC Core/optional: Notify, Payment, Reports, Roles, Shipping Quotes, Taxes
UC Extra: Cart links
UC Fullfillment: Flatrate, U.S. Postal Service
UC Payment: Payment Method Pack, PayPal

Thanks in advance!

Posts: 6
Joined: 07/08/2008

Would appreciate some ideas. Anyone??? Could there be any other settings causing this problem?

I forgot to mention above that I have only one product node on the test site, so the test orders were for multiple quantities of the one product (i.e., it appears on a single line in the cart/invoice). Not sure if that makes a difference.

Thanks!

Posts: 2259
Joined: 08/07/2007
AdministratoreLiTe!

It does, actually. I should have thought of that the first time.

You need to use the correct value for the Package Quantity field of the product. How many products will you ship in one box? That's the number to put there.

When there's only one kind of product in the order, the UPS module ignores the "all in one" setting because it's easy to get the package data for that product. With more than one product, it has to use a default package type, which may or may not be the one chosen on any of the products. This allows the quotes to be the most accurate.