Guest Posted April 26, 2008 Posted April 26, 2008 (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 April 26, 2008 by lriggs Quote
jasonbauer Posted April 27, 2008 Posted April 27, 2008 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!!!!! Quote
jasonbauer Posted April 27, 2008 Posted April 27, 2008 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'); Quote
Guest Posted April 28, 2008 Posted April 28, 2008 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. Quote
Recommended Posts
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.