Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

support for USPS media mail???


davidj

Recommended Posts

I have installed the USPS shipping module and switched from test to production. When I test the checkout there is no option for media mail. As I will be selling LPs, media mail is a requirement. Are there any additional modules I can install to allow for media mail? I checked the usps.php file and could not even find a reference to media mail. any help greatly appreciated.

Link to comment
Share on other sites

It appears that several service types are missing from the USPS module. To add media mail, find this code in includes/modules/shipping/usps.php (line 46-49):

      $this->types = array('Express' => 'Express Mail',
                          'First Class' => 'First-Class Mail',
                          'Priority' => 'Priority Mail',
                          'Parcel' => 'Parcel Post');

and replace it with this code:

      $this->types = array('Express' => 'Express Mail',
                          'First Class' => 'First-Class Mail',
                          'Priority' => 'Priority Mail',
                          'Parcel' => 'Parcel Post',
                          'Media' => 'Media Mail');

I don't have a USPS password to test this with, so please test it thoroughly before using.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...