rainbowsheep Posted March 8, 2004 Share Posted March 8, 2004 I want to change the names of the USPS shipping names. I went into the language file for usps, but when I change the name, USPS shipping breaks, saying that it can't find any rates. Any clues? Link to comment Share on other sites More sharing options...
bloodshoteyes Posted March 8, 2004 Share Posted March 8, 2004 Make no changes in languages. FTP the usps.php file to your computer and use a good quality PHP Editor. Next find the following lines around line 49; $this->types = array('Express' => 'Express Mail Service', 'Priority' => 'Priority Mail Service', 'First Class' => 'First-Class Mail', 'Parcel' => 'Parcel Post Service'); And edit the names to the right of the =>.. Next find the following lines around line 60; $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'); And edit what you need. Return the language file to original.... Link to comment Share on other sites More sharing options...
rainbowsheep Posted March 8, 2004 Author Share Posted March 8, 2004 Make no changes in languages. FTP the usps.php file to your computer and use a good quality PHP Editor.Next find the following lines around line 49; $this->types = array('Express' => 'Express Mail Service', 'Priority' => 'Priority Mail Service', 'First Class' => 'First-Class Mail', 'Parcel' => 'Parcel Post Service'); And edit the names to the right of the =>.. Next find the following lines around line 60; $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'); And edit what you need. Return the language file to original.... Ok.. I'll try that. I thought that the values in the language files could be changed without breaking anything. Link to comment Share on other sites More sharing options...
bloodshoteyes Posted March 8, 2004 Share Posted March 8, 2004 Good luck, check back if you need more help.... Link to comment Share on other sites More sharing options...
Stormlilly Posted May 17, 2004 Share Posted May 17, 2004 Hi Mike, I tried what you said and it doesn't work. Once you edit the shipping name it fails to show up at all. For example: I tried changing the text 'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (Single)', to 'Priority Var' => 'Global Priority Mail', but then the option doesn't show. Any ideas?? Link to comment Share on other sites More sharing options...
Luchysoft Posted July 10, 2006 Share Posted July 10, 2006 Does anyone know how to change the display names for the USPS shipping methods? The solution in this post does not work because the values in the intl_types array must match exactly what USPS is expecting or it doesn't return a postage value. Has anyone figured out an easy way to modify the service names? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.