Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

USPS Shipping Method ALWAYS "Express" Regardless of Buyer Selection


Recommended Posts

Posted (edited)

I was notified by the store owner that a customer reported he wanted the Standard Shipping option but when he got to checkout confirmation he was charged at the Express rate, the most expensive rate.

 

I looked in catalog/includes/modules/shipping/usps.php and I am seeing that "Express" is the first method option so it seems to be choosing the first option in the array regardless of any other choice being made. Here's the area of code I saw, starting at line 45:

 

     $this->types = array('Express' => 'Express Mail',
                          'First Class' => 'First-Class Mail',
                          'Priority' => 'Priority Mail',
                          'Parcel' => 'Parcel Post');

     $this->intl_types = array('GXG Document' => 'Global Express Guaranteed Document Service',
                               'GXG Non-Document' => 'Global Express Guaranteed Non-Document Service',
                               'Express' => 'Global Express Mail (EMS)',
                               'Priority Lg' => 'Global Priority Mail - Flat-rate Envelope (large)',
                               'Priority Sm' => 'Global Priority Mail - Flat-rate Envelope (small)',
                               'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)',
                               'Airmail Letter' => 'Airmail Letter Post',
                               'Airmail Parcel' => 'Airmail Parcel Post',
                               'Surface Letter' => 'Economy (Surface) Letter Post',
                               'Surface Post' => 'Economy (Surface) Parcel Post');

 

I read through the forum and found a lot of posts regarding this or similar problems, but I'm confused how to determine which is the correct solution for my problem. Can anyone help?

 

The module is set up to connect to the USPS production server.

 

Many thanks!

Edited by lriggs
Posted

I'm having the exact same problem. Everything was working and now it automatically chooses express as the shipping method no matter what the customer selects. If someone could help it would be much appreciated. Thanks!!!!!

Posted
I'm having the exact same problem. Everything was working and now it automatically chooses express as the shipping method no matter what the customer selects. If someone could help it would be much appreciated. Thanks!!!!!

 

I found the solution in another post:

 

The solution is quite simple. In the includes/modules/shipping/usps.php file near line 46 replace:

 

CODE

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

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

'Priority' => 'Priority Mail',

'Parcel' => 'Parcel Post');

 

with:

 

CODE

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

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

'PRIORITY' => 'Priority Mail',

'PARCEL' => 'Parcel Post');

Posted
I found the solution in another post:

 

The solution is quite simple. In the includes/modules/shipping/usps.php file near line 46 replace:

 

CODE

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

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

'Priority' => 'Priority Mail',

'Parcel' => 'Parcel Post');

 

with:

 

CODE

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

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

'PRIORITY' => 'Priority Mail',

'PARCEL' => 'Parcel Post');

 

It seems incredibly simple. I have made the change and will ask the store owner to do a test purchase and see if the shipping method choice "sticks". Thanks for your help.

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...