I have read in many places that the USPS bases its quotes on weight and disregards dimensions. I don't think that is true any longer and I think changes were made to uc_usps that essentially
'broke" USPS quotes.
All of my products have dimensions and weight. When I submit the "calculate postage" button I invariably get:
Dimensions are missing for package; unable to calculate postage. Additional Info: All dimensions must be greater than 0.
I suspect since previously USPS didn't require the size of a product, perhaps dimensions are overridden and set to zero? And maybe now USPS is taking in that information and rejecting it?
EDIT: I was about to submit this issue, when I tried one other thing. I was able to add one product and get a quote without that notice. It only happens on orders with more than one product. You can try it our yourself at:
http://horizonsalesenterprises.com/catalog/bongos just be sure to add two products. (By the way my configuration is set to "Each product in its own package")
On a side note: I just noticed tat regardless of whether you choose "Each product in its own package" OR
"All products in one package," you cannot choose the options for insurance or to require a signature. Why?
Comments
Comment #1
TR CreditAttribution: TR commentedBecause "Dimensions are missing for package;" doesn't appear anywhere in the Ubercart source code, I'm going to assume you've turned on the shipping quotes debug output and that the message is being printed in the debug output returned from USPS? If so you should also be seeing the complete text of the quote request being sent to USPS, and it should be clear whether the dimensions really are there or not. Regardless, we need to see that complete text. Don't forget to strip out your account number before you post.
Comment #2
mcfilms CreditAttribution: mcfilms commentedHi TR,
Actually if I have the debug OFF I get that line. With debug ON I get:
My read on this is that USPS is now expecting to get the dimensions and it is only getting Size>LARGE.
Other data worth mentioning. My shipping quote settings are only using "U.S.P.S. Parcel Post." My "Default order fulfillment type for products" is "Small Package" because my only other choice is "Letter."
This quote for two packages weighing 15 and 12 pounds came to a total that said:
"Parcel Post® (1 package): $10.73"
I'm not saying an error on my part is not possible. But I have deployed three other ubercart shops previously and have not run into this issue. I believe there is a problem with the D7 version of this shipping module.
Comment #3
WesleyTx CreditAttribution: WesleyTx commentedI was getting this same error in version 6.x-2.7 and I appear to have fixed it simply by adding the following into uc_usps_rate_request:
The rates I'm getting jibe with those I get directly from USPS's online form.
Comment #4
drum5ormore CreditAttribution: drum5ormore commentedIt appears this error only occurs when the size is set to "LARGE".
To fix this, add the code mentioned above, but make sure you add the extra elements just after
'<Size>' . $package->size . '</Size>' .
Otherwise you'll get a DTD/schema error.
Comment #5
turbogeek CreditAttribution: turbogeek commentedI can confirm that with the addition of the four lines WesleyTx posted, it will resolve the issue. The error seemed to crop up with larger packages (over 2'x2'). After I altered the uc_usps_rate_request function, I was getting incorrect rates when more than one item was in the cart - it was actually a lower amount with multiple items than a single item. The remedy seemed to be a setting in the USPS config, under Quote Options, changing Product Packages to "Each in its own package" (if this applies to your store).
Comment #6
sander-martijn CreditAttribution: sander-martijn commentedTo fix international quoting for oversized packages, several more things need to change than the ones listed above. What I have so far is:
This is now returning the proper quote for large items international. However it's still showing up as an error and I'm not sure why. In the error response I can clearly see the proper quote:
Comment #7
sander-martijn CreditAttribution: sander-martijn commentedJust realized I didn't change the status of this after providing a partial solution and question regarding the last bit.
Comment #8
longwaveCommitted the changes from #3 to both branches. If you still have problems with USPS after upgrading to the latest -dev release, please open a new request with full debugging information.