Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Set USPS Options


mattsm

Recommended Posts

Posted

I need to limit my shipping options to USPS International Priority and USPS Express. What's the best way to do this? Should I install a module?

Posted

is ther not a usps module in the standard osC? I thought there was.

Anyhow all you need do is enable the one you want to use, if your choice is not already there search for a suitable addon

Nic

 

 

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

Yes the USPS module was setup by someone through the admin control panel.

 

I tried commenting out some of the intl_types (didn't do anything) from the array in:

includes/modules/shipping/usps.php

Posted

 

I tried commenting out some of the intl_types (didn't do anything) from the array in:

includes/modules/shipping/usps.php

I have the same issue, has anyone done this already?

Ex Mainframe Programmer, now learning osCommerce

Posted

In /includes/modules/shipping/usps.php find this:

     if ( in_array($my_country, $this->mcmDomesticIdArray) ) { // United States
       $this->types = array('Express' => 'Express Mail',
                          'First Class' => 'First-Class Mail',
                          'Priority' => 'Priority Mail',
                          'Parcel' => 'Parcel Post');
     }                     

and change to this:

     if ( in_array($my_country, $this->mcmDomesticIdArray) ) { // United States
       $this->types = array('Express' => 'Express Mail');
     }                     

 

Then find this:

   else { // international
     // V.3 of WebTools API (MAY 14, 2007 on)
       $this->intl_types = array(					
               'Express Mail Int' => 'Express Mail International EMS)',								
               'Priority Mail Int' => 'Priority Mail International',
	'Priority Mail Int Flat Rate Env' => 'Priority Mail International Flat Rate Envelope'
			);
     // end v.3 change        

and change to this:

   else { // international
     // V.3 of WebTools API (MAY 14, 2007 on)
       $this->intl_types = array(					
               'Priority Mail Int' => 'Priority Mail International');
     // end v.3 change        

 

No guarantees. Make appropriate backups!

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Archived

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

×
×
  • Create New...