Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Global Priority Mail - flat-rate Envelope (sm)


Recommended Posts

Posted

Using MS2, USPS Insurance mod (usps_insv2). The Global Priority Mail - Flat-Rate Envelope (small) shows up and since I can't use it for what I ship I'd like to remove it as an option.

I don't know how/where to change "what" so I am asking for a bit of help.

I did comment out usps.php at:

$this->intl_types = array( ...etc.etc...)

.....

 

// 'Priority Sm'=> Global......Small)',

(about line 57)

but it doesn't seem to have an effect.

 

Any ideas?

--Jeff

Posted

If you are using the USPS methods contribution, you should be able to select from admin which shipping methods you don't want under admin ->modules=> shipping->usps. You should not have to edit any code.

Posted
If you are using the USPS methods contribution, you should be able to select from admin which shipping methods you don't want under admin ->modules=> shipping->usps. You should not have to edit any code.

Will that contrib specifically block out the Global Priority Small envelope option?

Posted
Will that contrib specifically block out the Global Priority Small envelope option?

 

There are check boxes in the admin section. You can click which shipping options you want to offer and which you do not want to offer to the customer by checking or unchecking the boxes.

  • 2 weeks later...
Posted

The instructions indicate that this will overwrite my admin/modules.php

 

Won't this kill some of the other modules I've added?

Posted

If you already have made mods to admin/modules.php, just make this change:

 

around line 37 change:

    switch ($HTTP_GET_VARS['action']) {
   case 'save':
     while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
       tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
     }

to this:

    switch ($HTTP_GET_VARS['action']) {
   case 'save':
     while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
       if( is_array( $value ) ) $value = implode( ", ", $value);
       tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
     }

Posted

An easier way is to comment out the lines in usps.php that define the options. Here's what I have, for example:

 

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

     $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');

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...