Hi, my ubercart (Ubercart 6.x-2.x-dev (2011-Mar-01)) installation seems to be working well. I've set up USPS shipping quotes and on checkout, they are immediately returned. But when I try to use the estimator in the cart, it fails. Here's the debug:
API=RateV3&XML=ALL9838200.0RECTANGULARREGULARFalse
<?xml version="1.0"?>
-2147219100Rate_Respond.;clsRateV3.UnpackRateNode;SOLServerRates.RateV3_RespondMissing value for ZipOrigination.1000440
There were problems getting a shipping quote. Please verify the delivery and product information and try again. If this does not resolve the issue, please call in to complete your order.
This says that there isn't a value for zip origination. But it is set in the product and in the store.
Thanks for your help!
Hall
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | productpickup.png | 37.61 KB | HallSL |
| #6 | storedefaultpickup.png | 39.79 KB | HallSL |
Comments
Comment #1
HallSL commentedComment #2
tr commentedPlease wrap your debug XML inside <code></code> so that it will display properly here in the forum. It's unreadable right now.
Comment #3
HallSL commentedSorry!
Comment #4
tr commentedAs you can see from the debug message, USPS is telling you that you're missing ZipOrigination, which is the ZIP code the package is sent from. That can be set at admin/store/settings/quotes/edit under "Default pickup address". Once you've set the store address you shouldn't have problems getting a quote.
Comment #5
HallSL commentedPlease re-read the original message. I know that the debug code is telling me that I'm missing the ZipOrigination, but I'm not. It is set in both the product's individual screens and in the store default settings. Notice also that with no change at all, it fails in the cart and then works in the checkout itself.
Here is the code from the cart:
Here is the code for the checkout:
(No changes made between the two screens.)
Comment #6
HallSL commentedPlease give me something to try here... I have a shopping cart all ready to run, but the estimator fails. The address really is filled in. See attached screen captures showing a product pickup address and the store default.
Hoping for some help...
Hall
Comment #7
longwavePerhaps fixed by #1079408: View cart shipping pane - no packages, failed quote
Comment #8
HallSL commentedI've just updated to the recent dev version and now can't get quotes in either the cart or checkout. Here's the new debug:
I guess this probably belongs in another issue, and I'll look for it. At this point, the original issue from this thread does not occur under this version.
Comment #9
deggertsen commentedI am also suddenly having this exact same problem. I can set the product package type to variable and it will give a quote in checkout but if I set it to anything else it returns with the error in #8. But no matter what I do in the cart when I try to get a shipping quote it presents the original problem in this issue.
Did something change with USPS's API recently?
Comment #10
tr commentedRe #8: The new USPS API came with new package types. Your package type should be Variable, not Rectangular. You can change this on the product edit page. Variable is the default in code unless you have overridden the package type on the product edit page.
Comment #11
jrussell commentedTR, I have the problem in #8 too. The code looks to me to have RECTANGULAR as default. Fixed it on my environment with:
Comment #12
sah62 commentedSubscribing
Comment #13
tr commented@jrussell: Oh, looks like it only got changed in Ubercart 3.x and didn't get backported to Ubercart 2.x. I fixed that just now but I'm leaving the issue open because the issue is really about not getting quotes on the cart page, which is unrelated to the RECTANGULAR/VARIABLE problem.
Comment #14
HallSL commentedI started this thread. My problem seems to be fixed by the most recent dev update (and choosing variable). Thanks! I'll leave it to TR to mark it fixed, since I'm not sure if others are still having problems.
Comment #15
sah62 commentedSo I should edit all of my products that are currently using the Rectangular type and change Rectangular to Variable? With that change I can confirm that I'm seeing quotes on my cart pages.
Comment #16
tr commented@sah62: That shouldn't be necessary unless you had explicitly set your products to use RECTANGULAR in the first place - if you hadn't specified anything and let Ubercart use the default, then after the patch Ubercart should be using the new default of VARIABLE. That's why I didn't include code to automatically rename all the container types in the database. But if you're still having problems after the patch, it does no harm to go into the uc_usps_products table and change RECTANGULAR to VARIABLE.
Comment #17
sah62 commentedYes, that's what I had done. Interestingly, I still get an error if I use the other package types (large flat rate box, for example). That doesn't sound intuitively (or perhaps naively) correct, but based on #13 above I guess that's fodder for a different issue. Thanks, TR.
Comment #18
tr commentedThe new USPS API introduced a bunch of new container types which aren't fully supported by the code yet. We had to switch to the new API because they're turning off the old API in a couple of months, but it will be a lot of work to add the new functionality to the uc_usps module. I don't have time to do that right now; I'm hoping a client will need it one of these days so I will have an excuse to put some work into it.
Comment #19
deggertsen commentedAny progress on this TR? It seems like ever since we had the API switch (If I understand correctly that's the problem) people trying to order product kits haven't been able to get USPS quotes as well as the problem mentioned in this thread. I might be willing to get my hands dirty with this if you might be able to point me in the right direction of what needs to be done... I'm not much of a programmer but I could try.
Comment #20
tr commented@deggersten: As far as the original poster's problem, I haven't had spare time to look into it yet and try to reproduce it. As far as RECTANGULAR vs VARIABLE, I believe that's fixed. And as far as adding new capability to the USPS module to support the new API features, my situation is still what I mentioned in #18.
No one has filed an issue with Product Kits and USPS, so if that's something you're experiencing please open an issue and document the problem.
Comment #21
BigMike commentedit does no harm to go into the uc_usps_products table and change RECTANGULAR to VARIABLE.
I had to learn some MySQL to know how to do this. For other noobs like me who don't know what they are doing,
1. Log into your phpMyAdmin
2. Click on your Database
3. Click on the SQL tab
4. Enter this into the large text box:
UPDATE `databasename`.`uc_usps_products` SET `container` = replace(`container`,"RECTANGULAR","VARIABLE")...replacing `databasename` with the name of your database.
5. Then hit Go.
6. Double check the uc_usps_products table to make sure the values have been updated.
Comment #22
zkrebs commentedI would like to confirm that #21 was necessary after using Drush to update to Ubercart 2.6
I wish I could know about these things somehow in advance without crawling through logs.
Comment #23
ChrisLaFrancis commentedSubscribe.
Comment #24
ben coleman commentedIs the problem with using RECTANGULAR as the container going to apply to USPS international? I note that uc_usps_intl_rate_request is hard-coded to use RECTANGULAR. Should this be changed to VARIABLE?
Comment #25
thedeed commentedI can confirm that # 21 works. Thanks BigMike
Comment #26
dmendo11 commentedHello Guys,
I did was having issues with the Rectangular settings, since it was saying exactly what the Original Post stated.
Before it was working after ubercart upgrade shipping went bonkers. So I followed the option of what #21 suggested. But now I am getting 2 Packages at check out.
I have a mixture of products that requires envelopes and small packages. For some reason after doing this, the settings now dectects 2 packages.
I think the problem is with Envelope Settings which were "rectangular" and now are variable. Is there a way to make the changes for envelope only to be rectangular. I was trying to update on each product, but it keeps going back to Variable.
Any help would be appreciated, for the meantime, I have made a Flat Rate Base so customers dont go crazy wondering about the 2 packages which jump in price to double the correct pricing.
David
This is the code I see.
Comment #27
tr commentedThe original problem no longer exists, as indicated by #14. The posts since then have discussed various other things, none related to the original post. If anyone is still having an issue with something other than the original problem, please open a new ticket.