Post by maderstrains » Tue Jan 05, 2010 7:10 am

I need some help here, this has been an on-going issue with the USPS Shipping since my original site went down and I had to start over fresh.

We (meaning myself and my computer tech) cannot figure out the USPS API codes. He does not know where to put the API codes into the OpenCart coding. Can anyone help with this? Here is what he said to me in the last email about this issue:
As far as USPS/OpenCart, I need the location of where to put the API codes in the OpenCart code. I have the API codes, but no idea where they are supposed to go.
I am using OpenCart version 1.3.4 and using the supplied United States Postal Service Shipping Module.

Please advise and help in anyway possible, thank you

Josh Mader
Maders Trains
http://maderstrains.com/


Active Member

Posts

Joined
Sat Jun 06, 2009 1:31 am
Location - Rancho Santa Margarita, Cali

Post by Qphoria » Tue Jan 05, 2010 8:04 am

API codes? Sounds like your tech isn't sure what he's doing.

1. Sign Up for a USPS Webtools account here:
https://secure.shippingapis.com/registration/

2. If using v1.3.4, download and install my usps patch fix here:
http://forum.opencart.com/viewtopic.php ... sps#p39586
This patch fixes:
- the php errors
- the lack of proper error message
- a cart weight formatting bug

3. In the admin section, install and configure the module from Extension->Shipping

4. In the configuration area,
- enter your USPS Webtools user id (looks something like this: 920JSMITH14)
- enter your USPS Webtools password
- enter your origin zip code
- Choose the services you will offer and any other fields you want.

5. Test it on the catalog side.

If you get an error about "Authorization" that means you need to call usps and have them manually activate your account. They have a bug in their automated activation system that they still haven't fixed in over 6 years now so you have to call them and have them manually do it.

There is no code that you need to add, that is the whole point of the module.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by maderstrains » Wed Jan 06, 2010 2:21 pm

Thank you so much for the help, this little issue has now been resolved and fixed thanks to your help ;D

Josh Mader
Maders Trains
http://maderstrains.com/


Active Member

Posts

Joined
Sat Jun 06, 2009 1:31 am
Location - Rancho Santa Margarita, Cali

Post by YarniaPDX » Fri Sep 17, 2010 5:44 am

Awesome, you're right! All I needed was to call in and have them manually activate it -- now it works no problem! USPS will reroute you a hundred times in the process, so if anyone else is trying to get this set up, it will save you time to just call 1.800.344.7779, x3. :)

Active Member

Posts

Joined
Sat Sep 04, 2010 7:10 am

Post by JamesC4S » Sat Oct 09, 2010 6:23 am

I'm not sure if this changed since the original posting, but the email from USPS clearly states the process that needs to be followed. The user is requested to post a sample query to their test servers, then email customer service to switch the user account to production.

You can save yourself a step when contacting the customer service email account and tell them you are using Open Cart at that time. If you are using third-party software, it is not necessary to post a test query.

Newbie

Posts

Joined
Sat Oct 09, 2010 6:19 am

Post by Qphoria » Sat Oct 09, 2010 7:20 am

JamesC4S wrote:I'm not sure if this changed since the original posting, but the email from USPS clearly states the process that needs to be followed. The user is requested to post a sample query to their test servers, then email customer service to switch the user account to production.
Yes, it says you need to post a sample query to the "test" servers implying that your account is setup on the "test" servers.. But it isn't.

What should happen...
1. You create an account
2. You are automatically added to their test server
3. You send a test query
4. You call them and have them move you to production

What really happens...
1. You create an account
2. You are NOT added to their test server. You are actually not on either server
3. You call them and tell them
4. They say "We do not have a test query from you. Please send a test query"
5. Now you are miraculously added to their test server
6. You send a test query
7. You call them again and have them put you over to production

Sometimes they don't complain about you not having sent a test query. But for initial signup, you are supposed to be able to connect to the test server but you can't. They haven't figured that part out yet over at USPS

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by junkyfungus » Tue Nov 30, 2010 11:42 pm

Just a quick update: I called this morning after the typical Authorization Declined notice and I was informed that ALL THIRD PARTY CARTS have been thoroughly tested and therefore testing is not required anymore. They simply switch you over to live. Enjoy

User avatar
New member

Posts

Joined
Sun Sep 12, 2010 1:37 pm
Location - Munford, TN

Post by Qphoria » Tue Nov 30, 2010 11:50 pm

junkyfungus wrote:Just a quick update: I called this morning after the typical Authorization Declined notice and I was informed that ALL THIRD PARTY CARTS have been thoroughly tested and therefore testing is not required anymore. They simply switch you over to live. Enjoy
LOL what does that mean? All Third party carts have been tested? What if I start a new cart today. They are just gimps

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by junkyfungus » Wed Dec 01, 2010 9:47 am

I didn't even bother asking, just chuckled inside.

User avatar
New member

Posts

Joined
Sun Sep 12, 2010 1:37 pm
Location - Munford, TN

Post by maryfberry » Wed Feb 16, 2011 6:59 am

Thank you for posting the directions for the USPS shipping module. I didn't realize I had to be registered in a different area of the USPS site. Your directions helped me at least get the module working to some degree.

Do you have any idea why it is not showing First Class for a 1.0 ounce purchase? I have First Class checked in the shipping module set-up, but it's not being offered for the purchase. I'm using Open Cart v. 1.4.7

Many thanks.
Mary

Newbie

Posts

Joined
Wed Feb 16, 2011 6:56 am

Post by kenlyle » Sun Feb 20, 2011 12:37 am

So, it USPS Live Rates now part of OpenCart core, or does it require the add-on from Qphoric?

The listing of USPS under Shipping Methods on the Features page seems to imply this, but why would it not just say something like Live Rates to make it clear?

Thanks!

Newbie

Posts

Joined
Fri Mar 26, 2010 11:24 pm

Post by Qphoria » Sun Feb 20, 2011 9:01 am

No mine is not required.. mine was available first and I've just kept it available.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by javajumbo » Mon Apr 11, 2011 11:14 am

Hello,
Perhaps I am missing something, but when I [edit] the USPS module, I only get two required fields, User ID and Zip Code. There is no field to put the password I received from USPS WebTools registration.

Am I looking at a different module? I am using OC 1.4.9.4 and the USPS shipping module was included by default.

Thanks in advance.

Newbie

Posts

Joined
Mon Apr 11, 2011 3:02 am

Post by Qphoria » Mon Apr 11, 2011 11:48 am

Not needed

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by JulianTosh » Mon May 02, 2011 7:57 am

javajumbo wrote:Hello,
Perhaps I am missing something...
Same question here, except that I'm also getting a PHP error when I try and check out with a item that requires shipping. The error reads:

Code: Select all

PHP Fatal error:  Class 'DOMDocument' not found in /var/www/html/REDACTED/catalog/model/shipping/usps.php on line 344, referer: https://REDACTED/index.php?route=product/category&path=39

https://www.bitcoincyberstore.com/


Newbie

Posts

Joined
Mon May 02, 2011 7:53 am

Post by JulianTosh » Mon May 02, 2011 8:53 am

Disregard. I was able to get past the PHP error by installing php-xml.

https://www.bitcoincyberstore.com/


Newbie

Posts

Joined
Mon May 02, 2011 7:53 am

Post by TLone » Sat May 07, 2011 11:26 pm

Hi,

I seem to be having a similar problem.

I've installed the module and plugged in the info. Last message from USPS:
Thank you for responding to the USPS Internet Customer Care Center in regards to upgrading your Web Tools account. I would be happy to move your account to production. We appreciate you informing us of your intent to use third party software for your Web Tools account.

Your profile has been updated to allow you access to the Production Server.

1. The Production Server URL is: http://production.shippingapis.com. For APIs calling the secure server, the URL is https://secure.shippingapis.com.
2. There is a line of code that refers to "shippingapitest.dll". You'll need to remove the word "test".
But, now I'm just getting this trying to check out:
Error: No Shipping options are available. Please contact us for assistance!
http://troutlegend.com/store/

Thank you for any assistance!

New member

Posts

Joined
Mon Apr 18, 2011 2:15 am

Post by Qphoria » Sun May 08, 2011 1:25 am

Be sure you have the latest USPS patch
http://forum.opencart.com/viewtopic.php?f=133&t=30489

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Sidecutter » Sun May 08, 2011 1:18 pm

If you're not getting quotes, make sure you don't have "Regular" for the size and "Rectangular" for the shape. USPS will reject it as invalid to specify that shape for that size. Choose variable instead.

WTF USPS?

Active Member

Posts

Joined
Tue Jan 18, 2011 6:58 am

Post by Qphoria » Sun May 08, 2011 7:41 pm

Sidecutter wrote:If you're not getting quotes, make sure you don't have "Regular" for the size and "Rectangular" for the shape. USPS will reject it as invalid to specify that shape for that size. Choose variable instead.

WTF USPS?
Yea this is an annoying thing that makes no sense. Why can't a normal package be regular and rectangular. At any rate, be sure you have the latest usps patch and enable the usps debug mode so you can see what the errors are in the system log. In 1.4.9.5 and 1.5.0 I've also updated the usps module to better show errors

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 13 guests