Guest Posted April 7, 2004 Posted April 7, 2004 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 BoBSuefepet 1 Quote
safoo Posted April 11, 2004 Posted April 11, 2004 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. Quote
Guest Posted April 12, 2004 Posted April 12, 2004 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? Quote
safoo Posted April 13, 2004 Posted April 13, 2004 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. Quote
Guest Posted April 21, 2004 Posted April 21, 2004 The instructions indicate that this will overwrite my admin/modules.php Won't this kill some of the other modules I've added? Quote
zzfritz Posted April 22, 2004 Posted April 22, 2004 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 . "'"); } Quote
stevel Posted April 22, 2004 Posted April 22, 2004 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'); Quote Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
cdi-buy.com Posted April 27, 2004 Posted April 27, 2004 I've commented out those lines (removed them actually) and the options are still showing up. Quote
stevel Posted April 27, 2004 Posted April 27, 2004 I would guess, then, that you haven't done it correctly, as this edit works for me. Quote Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
cdi-buy.com Posted April 27, 2004 Posted April 27, 2004 I've installed several of these shops and it never worked. I just spend 5 minutes installing UPS and USPS Choice Contributions and it was well worth it. Quote
stevel Posted April 28, 2004 Posted April 28, 2004 My apologies - you are correct, commenting out the lines doesn't work. Strange... Quote Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
Recommended Posts
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.