Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

USPS Defaults to Express Shipg No Matter What Shipg Is Selecting (Domestic)


printchic

Recommended Posts

Hi All,

 

I've searched the boards and can't find any definite answer on this so i am posting my own quest for help.

 

I have been using OS Commerce for over a year, I've already registered with USPS and things were working well until recently.

 

I am suddenly finding that no matter what someone chooses for shipping method, (priority, parcel, etc.) it defaults to the higher "EXPRESS MAIL" shipping price. I though it was a bit strange people were ordering and selecing express mail alot but didn't know there was a problem.

 

I have made no changes to my store. The only thing i do know is recently my host upgraded from "Php 4" to "Php 5" and they said they would run something to update things across the board but they were not going to go through individual program. I don't know if the change to php5 had anything to do with this.

 

This is what my code is now for usps.php

 

      $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');

 

Any help with this would be greatly appreciated. My site if you want to see the problem is at http://www.promotees.com

Link to comment
Share on other sites

Just updating my original post.

 

I have checked my server and it's still version 4.4.4 for php

 

So...

 

The only other thing i feel could be an issue is i turned on "Per Item" shipping module the other day as i was thinking it would allow me to set rates per item as i was adding an item that would not be shipped and was hoping to set it's rate to 0.

 

But it didn't work the way i thought so i "disabled" the per item.

 

Is there something in the code that is still recognizing the "per item" settings although i have removed them.

 

I also went back and reinstalled the USPS shipping module after all this thinking it would overlay anything.

 

Still i get the USPS express shipping rate no matter what is selected.

Link to comment
Share on other sites

Just updating my original post.

 

I have checked my server and it's still version 4.4.4 for php

 

So...

 

The only other thing i feel could be an issue is i turned on "Per Item" shipping module the other day as i was thinking it would allow me to set rates per item as i was adding an item that would not be shipped and was hoping to set it's rate to 0.

 

But it didn't work the way i thought so i "disabled" the per item.

 

Is there something in the code that is still recognizing the "per item" settings although i have removed them.

 

I also went back and reinstalled the USPS shipping module after all this thinking it would overlay anything.

 

Still i get the USPS express shipping rate no matter what is selected.

http://www.oscommerce.com/forums/index.php?showtopic=299124

Link to comment
Share on other sites

Thank MJP.

 

I have searched high and low on this forum today and didn't find the link you provided.

 

Anyway, I changed the fields in usps.php to uppercase and it works now.

 

I didn't see any of the other stuff like manager vendors, etc. mentioned in that post so i assume i have a different version than that one.

 

Anyway thanks for taking the time to post the link it was a lifesaver.

 

Signed,

Angela H.

Link to comment
Share on other sites

Thank MJP.

 

I have searched high and low on this forum today and didn't find the link you provided.

 

Anyway, I changed the fields in usps.php to uppercase and it works now.

 

I didn't see any of the other stuff like manager vendors, etc. mentioned in that post so i assume i have a different version than that one.

 

Anyway thanks for taking the time to post the link it was a lifesaver.

 

Signed,

Angela H.

good, glad you got it worked out!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...