Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing USPS shipping names


rainbowsheep

Recommended Posts

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

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

  • 2 months later...

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

  • 2 years later...

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

Archived

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

×
×
  • Create New...