Jump to content
Sign in to follow this  
asecaida

USPS Shipping Cost not correct

Recommended Posts

I have the USPS shipping module working on my site, but some of the rates are off for heavier products. I contacted USPS and they said something is not right with osCommerce. I was wondering if anyone else had a problem with incorrect shipping cost. Also to note, its not just off but way off, I have a 12lb product that cost $15 to ship parcel but it gives a rate of around $6.

-Thanks

Share this post


Link to post
Share on other sites
I have the USPS shipping module working on my site, but some of the rates are off for heavier products. I contacted USPS and they said something is not right with osCommerce. I was wondering if anyone else had a problem with incorrect shipping cost. Also to note, its not just off but way off, I have a 12lb product that cost $15 to ship parcel but it gives a rate of around $6.

Your settings are OK? See the knowledge base.

Share this post


Link to post
Share on other sites

i am having the same problem using USPS Methods 2_9_6. I used media mail for a 1.75 lb item and it charged it $4.07, while taking the item packaged and to ship at post office it costed only $2.47. The rate is not correct somehow.

Share this post


Link to post
Share on other sites

My parcel post calculations are also incorrect. Everything else checks out with USPS online rate calculator. Any ideas?

 

Using USPS Methods 2.9.6.

Share this post


Link to post
Share on other sites

Incorrect parcel calcs and defaulting to express mail with USPS methods 2.9.6. If your setting are correct then try this:

 

I had like problems and I found this at http://addons.oscommerce.com/info/4129. I made the changes and it worked like a charm. Hope this helps. Good Luck!

In November of 2007, USPS changed their api return code from lower case to upper case. We believe this to be an error by USPS which has broken thousands of websites. For this reason, we will only post the text method to make this change and not provide a file or direct db change because we anticipate that it may change back despite USPS assurances that this unannounced change is now permanent.

In any case, for mvs, this is how you fix the problem:

/includes/modules/vendors_shipping/usps.php

 

change all cases of Express where is named ALONE, ie not Global Express Mail, to EXPRESS

change all cases of Priority where is named ALONE, ie not International Priority Mail, to PRIORITY

change all cases of First Class where is named ALONE, ie not First Class Mail International , to FIRST CLASS

change all cases of Parcel where is named ALONE, ie not International Parcel Post, to PARCEL

 

I can't list the exact locations for you because my usps.php file is changed, here is an example of a changed location

 

OLD:

CODE

$this->types = array('Express' => 'Express Mail',

'First Class' => 'First-Class Mail',

'Priority' => 'Priority Mail',

'Parcel' => 'Parcel Post');

NEW:

CODE

$this->types = array('EXPRESS' => 'Express Mail',

'FIRST CLASS' => 'First-Class Mail',

'PRIORITY' => 'Priority Mail',

'PARCEL' => 'Parcel Post');

Share this post


Link to post
Share on other sites

I just found out I had the same problem. It was changing all shipping to express, people weren't continuing their orders. I followed the instructions to change everything to upper case and it is now working great.

 

Thanks so much and have a great day,

Linda

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×