jbinbpt Posted April 3, 2009 Posted April 3, 2009 Canadian customers get assigned USPS express shipping no matter which level they choose in the options. Why??
aiyou Posted April 5, 2009 Posted April 5, 2009 This issue started occurring (first with the US domestic rates, and then international) when the USPS changed some of their service names (May '08 I believe). Make sure that you have one of the latest USPS Methods (http://addons.oscommerce.com/info/487). I'm currently using 3.0.2 and it seems to work without issue. I think I saw it on one of the earlier threads about this, but I seem to recall that since the service names sent don't return a match, the first alphabetical entry (in this case Express) ends up being the returned rate. May not be the best technical definition... Remember to back up first. --Rob
aiyou Posted April 5, 2009 Posted April 5, 2009 First, looks like I was off on when the service names changed...May '07 seems more accurate. Boy, does time fly! Also, there was a minor change that I incorporated into USPS Methods 3.0.2 that I pulled from an earlier version (my apologies, can't remember which). Without it, the Priority may still work, but First Class won't show. In /includes/modules/shipping/usps.php, replace $this->intl_types = array('GLOBAL EXPRESS' => 'Global Express Guaranteed', 'GLOBAL EXPRESS NON-DOC RECT' => 'Global Express Guaranteed Non-Document Rectangular', 'GLOBAL EXPRESS NON-DOC NON-RECT' => 'Global Express Guaranteed Non-Document Non-Rectangular', 'EXPRESS MAIL INT' => 'Express Mail International (EMS)', 'EXPRESS MAIL INT FLAT RATE ENV' => 'Express Mail International (EMS) Flat Rate Envelope', 'PRIORITY MAIL INT' => 'Priority Mail International', 'PRIORITY MAIL INT FLAT RATE ENV' => 'Priority Mail International Flat Rate Envelope', 'PRIORITY MAIL INT FLAT RATE BOX' => 'Priority Mail International Flat Rate Box', 'FIRST CLASS MAIL INT' => 'First Class Mail International'); With /******************************************************************* */ //Added by Greg Deeth on May 12th, 2008 //INTERNATIONAL MAIL OPTIONS //Change the values to the option you would like //FIRST CLASS MAIL INTERNATIONAL OPTION: //$this->FirstClassIntType = 'Letters'; //OPTIONS: 'Letters', 'Large Envelope', 'Package' $this->FirstClassIntType = 'Package'; //OPTIONS: 'Letters', 'Large Envelope', 'Package' //PRIORITY FLAT-RATE BOX INTERNATIONAL OPTION: $this->PriorityFlatRateBoxType = 'Flat-Rate Box'; //OPTIONS: 'Flat-Rate Box', 'Large Flat-Rate Box' /****************************************************************** */ $this->intl_types = array('GLOBAL EXPRESS' => 'Global Express Guaranteed', 'GLOBAL EXPRESS NON-DOC RECT' => 'Global Express Guaranteed Non-Document Rectangular', 'GLOBAL EXPRESS NON-DOC NON-RECT' => 'Global Express Guaranteed Non-Document Non-Rectangular', 'EXPRESS MAIL INT' => 'Express Mail International (EMS)', 'EXPRESS MAIL INT FLAT RATE ENV' => 'Express Mail International (EMS) Flat Rate Envelope', 'PRIORITY MAIL INT' => 'Priority Mail International', 'PRIORITY MAIL INT FLAT RATE ENV' => 'Priority Mail International Flat Rate Envelope', //'PRIORITY MAIL INT FLAT RATE BOX' => 'Priority Mail International Flat Rate Box', //'FIRST CLASS MAIL INT' => 'First Class Mail International'); 'PRIORITY MAIL INT FLAT RATE BOX' => 'Priority Mail International ' . $this->PriorityFlatRateBoxType, 'FIRST CLASS MAIL INT' => 'First Class Mail International ' . $this->FirstClassIntType); Credit to Greg for the functionality to handle the different options for First Class and Priority. The USPS also introduced a new Small Flat Rate box, which I've not incorporated...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.