Post by nxr1956 » Tue Dec 27, 2011 3:30 am

Hello,

I've been testing opencart for a few days now but have run into a problem trying to use usps shipping. The setup calls for mandatory userid and zip code, plus dimensions and girth. I signed up for webtools access at usps and they sent me a userid and password. The userid I use on the module is from the usps web tools registration. So now what!!! I can't find any clear instructions on how to set this up. Do I need to develop an API? What happens during checkout is that it won't present any delivery options. Thanks.

Newbie

Posts

Joined
Mon Dec 26, 2011 3:38 pm

Post by kevtheirish » Tue Jan 17, 2012 6:45 am

you have to call USPS tell them you are using 3rd party (opencart) so they move you to a production server. Im having a headache trying to get it to work, but i just called to get moved over so hopefully its just a delay of some sort on their end

Active Member

Posts

Joined
Mon Jan 16, 2012 2:58 am

Post by robguitar7 » Wed Jan 18, 2012 10:20 am

Did any of you get this issue resloved?

Newbie

Posts

Joined
Wed Jan 18, 2012 10:19 am

Post by Qphoria » Wed Jan 18, 2012 10:45 am

nxr1956 wrote:Hello,

I've been testing opencart for a few days now but have run into a problem trying to use usps shipping. The setup calls for mandatory userid and zip code, plus dimensions and girth. I signed up for webtools access at usps and they sent me a userid and password. The userid I use on the module is from the usps web tools registration. So now what!!! I can't find any clear instructions on how to set this up. Do I need to develop an API? What happens during checkout is that it won't present any delivery options. Thanks.
What do you need to know?
Enter your user id
enter your zip code
Enter the average box dimensions that you will be using. The USPS module is somewhat limited to a single box size at this time so just use something average like 10x10x10.. Dimension only alters the price by less than a dollar in most cases.

The rest is self explanatory... choose the services you like.. machineable means if you are shipping packages that are normally less than 35lbs.. Choose if you want to see the weight or not. It's all pretty obvious stuff if you just read it.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by lperagallo » Fri Feb 03, 2012 4:11 am

It's not all that simple as I see it. I have been moved to the production server and got an email with new server names. Do I need to put these somewhere? If I leave USPS shipping enabled, my cart stops and will return nothing for delivery options. If I disable USPS then I get the rates from the UPS API that was set up.

So what gives? Do I need to make code changes somewhere to change to the server name that was supplied by USPS?

Lou

New member

Posts

Joined
Sun Oct 30, 2011 12:05 pm

Post by Qphoria » Fri Feb 03, 2012 6:35 am

lperagallo wrote:It's not all that simple as I see it. I have been moved to the production server and got an email with new server names. Do I need to put these somewhere? If I leave USPS shipping enabled, my cart stops and will return nothing for delivery options. If I disable USPS then I get the rates from the UPS API that was set up.

So what gives? Do I need to make code changes somewhere to change to the server name that was supplied by USPS?

Lou
Ah, You didn't mention UPS before. There is a small bug fix when running UPS and USPS together here:
http://forum.opencart.com/viewtopic.php ... 49#p206149

But the setup for both is easy.. USPS you enter one username field. There is no need for the urls as they are the same for everyone.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by cheatfusion » Fri Feb 10, 2012 7:48 am

kevtheirish wrote:you have to call USPS tell them you are using 3rd party (opencart) so they move you to a production server. Im having a headache trying to get it to work, but i just called to get moved over so hopefully its just a delay of some sort on their end
I am having the same issue. So what number do I need to call to get my account on a production server?

Newbie

Posts

Joined
Fri Feb 10, 2012 7:31 am

Post by straightlight » Fri Feb 10, 2012 7:53 am

cheatfusion wrote:
kevtheirish wrote:you have to call USPS tell them you are using 3rd party (opencart) so they move you to a production server. Im having a headache trying to get it to work, but i just called to get moved over so hopefully its just a delay of some sort on their end
I am having the same issue. So what number do I need to call to get my account on a production server?
http://www.contacthelp.com/directory/Go ... tingID=200

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by cheatfusion » Sat Feb 11, 2012 12:15 am

I have called USPS and my API account has been moved to a production server.

When I tried to place an order with my other account on my store, the shipping was not calculating. I also have the option to pick up at store. This feature does work, but I am not getting the USPS shipping calculator to even give me an estimated shipping of any kind.

Newbie

Posts

Joined
Fri Feb 10, 2012 7:31 am

Post by cheatfusion » Sat Feb 11, 2012 12:20 am

kevtheirish wrote:you have to call USPS tell them you are using 3rd party (opencart) so they move you to a production server. Im having a headache trying to get it to work, but i just called to get moved over so hopefully its just a delay of some sort on their end
When I asked them when the api changes will take into effect, they assured me immediately.

I do not understand why this usps api has to be such a pain. I do not understand why this can not be as simply as entering the fields required for the USPS Shipping Module and then it would.........um.......WORK!

Has anyone been able to see their USPS Shipping module work after being moved to a production server?

Newbie

Posts

Joined
Fri Feb 10, 2012 7:31 am

Post by cheatfusion » Sat Feb 11, 2012 12:24 am

One other thing I do not understand with the USPS shipping API, I see the fields want an average shipping shipping dimensions and girth. Why does this field even matter at all?
I sell consumer electronics and my products do vary from size from a battery to a tv so why would an average dimension even matter and the girth is something that does not make any sense.

Those fields should be removed and after speaking with USPS they did not know why that was added because they do not even know why they would need it.

The API calculates based off of shipping dimensions, weight, and customer shipping address, why then would the average and girth even need to be added, it actually may be a cause of the USPS shipping module not working.

But we need to figure this out and help people that are also having the same issue.

Newbie

Posts

Joined
Fri Feb 10, 2012 7:31 am

Post by cheatfusion » Sat Feb 11, 2012 12:53 am

I just called USPS back and they said that this issue is an OpenCart issue, because on there end I am on the Production server.

I have read the thread: http://forum.opencart.com/viewtopic.php?f=114&t=52652 and this has not helped.

I have also tried replacing some php code according to this thread: http://forum.opencart.com/viewtopic.php ... 37#p237915 This did not help, I changed it back.

So the issue is with Open cart

Newbie

Posts

Joined
Fri Feb 10, 2012 7:31 am

Post by Qphoria » Sat Feb 11, 2012 5:03 am

cheatfusion wrote:
kevtheirish wrote: I do not understand why this usps api has to be such a pain. I do not understand why this can not be as simply as entering the fields required for the USPS Shipping Module and then it would.........um.......WORK!
It is that simple. Are you also using UPS by chance as there is small bug fix when they are both used at the same time:
http://forum.opencart.com/viewtopic.php ... 49#p206149

Also, if using firstclass, there was an update that USPS made recently to the parcel:
http://forum.opencart.com/viewtopic.php ... 37#p237915

But those are the only 2 minor things.
You also needed spam the same problem across multiple threads.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by cheatfusion » Sat Feb 11, 2012 5:36 am

I have already tried both of these changes and they do not work.

Currently I only have USPS as my shipping method and only module active

While I had this module active, I did change the php code as you suggested in your second suggestion and this did not work, so I changed it back to parcel.

I only responded to the multiple threads that were posted about this same issue, I addressed what I have tried and what is still not working.

It has been confirmed by USPS that the issue lies with the module or opencart in general because I am in face on the productions server to allow this to work.

Newbie

Posts

Joined
Fri Feb 10, 2012 7:31 am

Post by Qphoria » Sat Feb 11, 2012 10:40 am

cheatfusion wrote:I have already tried both of these changes and they do not work.

Currently I only have USPS as my shipping method and only module active

While I had this module active, I did change the php code as you suggested in your second suggestion and this did not work, so I changed it back to parcel.

I only responded to the multiple threads that were posted about this same issue, I addressed what I have tried and what is still not working.

It has been confirmed by USPS that the issue lies with the module or opencart in general because I am in face on the productions server to allow this to work.
There is no issue.
And if it didn't work before you changed it to package
And it didn't work after you changed it back to parcel.. why would you change it back.
I personally updated and tested the USPS module for 1.5.1.3. I can guarantee it works 100%
I've denied every other person who claim it didn't work and they all realized it was their configuration error
I'm not giving "suggestions".. these are cold hard facts.
MAKE the 2 changes I say and don't question it!

Then post screenshots of your admin area to see what settings you have and we can see why it isn't working rather than your own unfounded guesses at why it doesn't work.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by brap999 » Sat Feb 25, 2012 4:07 am

I was searching to find a solution and came across this thread. Using Firebug I have tracked down the bug to here:

Fatal error: Class 'DOMDocument' not found in [path-to-opencart]/catalog/model/shipping/usps.php on line 339

This mostly likely is because the people with this problem do not have php-xml installed on their server. This was also my case. Not all of us have every php module installed on our servers. In my case it's for security reasons and I only install the things that I need. So it would be nice if the USPS module or Opencart checked to see if the PHP XML module is loaded on the server and throw warning out saying it won't work without it.

Newbie

Posts

Joined
Sat Feb 25, 2012 3:50 am

Post by Qphoria » Sat Feb 25, 2012 5:00 am

brap999 wrote:I was searching to find a solution and came across this thread. Using Firebug I have tracked down the bug to here:

Fatal error: Class 'DOMDocument' not found in [path-to-opencart]/catalog/model/shipping/usps.php on line 339

This mostly likely is because the people with this problem do not have php-xml installed on their server. This was also my case. Not all of us have every php module installed on our servers. In my case it's for security reasons and I only install the things that I need. So it would be nice if the USPS module or Opencart checked to see if the PHP XML module is loaded on the server and throw warning out saying it won't work without it.
Technically php found it for you. If you get the checkout patch, which is already part of the next version of opencart:
http://forum.opencart.com/viewtopic.php?f=133&t=45863
It will show up without needing to use firebug

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by kenguriha » Fri Dec 28, 2012 9:49 am

hey guys!
do you know what this may be:
110547: INCH is not a valid unit of measurement for dimensions for this shipment
I've searched all around and didn't find the answer.
Seems like I messed up the localization and measiurement but ...i checked everything

Newbie

Posts

Joined
Fri Nov 30, 2012 2:10 pm

Post by deewatt » Mon Jul 14, 2014 10:32 am

Qphoria wrote:
brap999 wrote:I was searching to find a solution and came across this thread. Using Firebug I have tracked down the bug to here:

Fatal error: Class 'DOMDocument' not found in [path-to-opencart]/catalog/model/shipping/usps.php on line 339

This mostly likely is because the people with this problem do not have php-xml installed on their server. This was also my case. Not all of us have every php module installed on our servers. In my case it's for security reasons and I only install the things that I need. So it would be nice if the USPS module or Opencart checked to see if the PHP XML module is loaded on the server and throw warning out saying it won't work without it.
Technically php found it for you. If you get the checkout patch, which is already part of the next version of opencart:
http://forum.opencart.com/viewtopic.php?f=133&t=45863
It will show up without needing to use firebug
Qphoria, I am running the latest version 1.5.6.4 and for the life of me I cannot get this module to work. It says I do not have any shipping options when I set USPS as the only shipping option, I already entered my API username. So maybe I should just give you my login inforation and you can go in and set it for me. I also attached a screenshot of my USPS settings page. I am about to give up!!!

Attachments

screen-shot1.jpg

screen-shot1.jpg (52.25 KiB) Viewed 9974 times


Newbie

Posts

Joined
Mon Jul 14, 2014 1:27 am

Post by Qphoria » Wed Jul 16, 2014 2:01 am

Try setting the geozone to ALL zones and see if that works.. if it does, then you may not have your geozone setup to match the customer account shipping country/zone as you expect.

Image


User avatar
Administrator

Posts

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

Users browsing this forum: No registered users and 1 guest