I also ran into the problem with USPS not giving rate quotes in test mode or production mode. According to the intro email I expected production to fail because I had to call to activate it. However when I called them to ask about test mode not working they proceeded to ask if I was using a third party shopping cart. I told them I was using Zen Cart and they said they needed to switch my profile to allow me access to the production server. As soon as they got back to my call I tried it in production mode and it worked. Upon switching back to test mode just for giggles I found that it worked also. Hope this helps anyone trying to set this up.
-Shawn
Exactly.
Similar details are listed in the USPS Setup FAQ: http://tutorials.zen-cart.com/index.php?article=327
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Ok, so I've searched this forum and others and have read over and over again how to properly set up the USPS module. I have everything I need and yet it doesn't work. It keeps giving me the following error:
We are unable to find a USPS shipping quote suitable for your mailing address and the shipping methods we typically use.
If you prefer to use USPS as your shipping method, please contact us for assistance.
(Please check that your Zip Code is entered correctly.)
I have the zip code in configuration/shipping/packaging set to my correct zip code. The address I am using to test is a valid address (my home address). I have called the USPS twice and they assured me I am on the production server, ready to go.
Yet it doesn't work.
I also have it set on debug mode, but it keeps sending blank emails. That doesn't really help me! :)
I also installed the latest usps.php file.
Any ideas?
Last edited by b3groover; 11 Jun 2008 at 07:48 PM.
Wow, so I called the USPS again just to make absolutely sure I'm on the production server and they assured me that I am. It still doesn't work in zen-cart, though.
Is there something wrong in my php settings or something? Can anyone help?
Thanks!
If you're getting no response at all back from USPS, then perhaps your webserver is failing to connect to the USPS site properly. That could be a problem caused by overly tight security on the server where they've prevented the PHP fsockopen() function from connecting to external resources.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Thank you for the reply. How would I find out if that is indeed the case and fix it?
If I were doing it, I'd be looking at the code in the usps.php module and either using that to create a simulation which shows me any errors or problems it encounters. Or maybe just turn on debug logging to see if anything gets reported by PHP. Or maybe just start by asking my hosting company if there are any restrictions and why.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Thank you. It does appear to be an fsockopen problem. Which also explains why Paypal IPN also does not work.
How can I fix this? I've been on hold with my stupid server hosting company for 30 minutes; nobody is answering the phone (very annoying... I think I'll switch companies). I have access to php.ini.
Thanks!
You probably cannot fix it yourself, unless you have access to the master php.ini file. If you do have access to the master, you'll find documentation on the PHP website on properly editing the settings in the file.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donations always welcome: www.zen-cart.com/donate
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Bookmarks