jschner Posted July 25, 2003 Posted July 25, 2003 Ok I'm only sending by Priority Mail. I deleted all the other options in the includes/modules/shipping/usps.php file. from this $this->types = array('Express' => 'Express Mail', 'First Class' => 'First-Class Mail', 'Priority' => 'Priority Mail', 'Parcel' => 'Parcel Post'); to this: $this->types = array('Priority' => 'Priority Mail'); It works fine. I then wanted to narrow the International orders to just GPM Variable Weight. from this: $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'); to this: $this->intl_types = array('Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)'); But it didn't work. It had no effect at all that I can notice. I still get all the international options like it's read from a different file. Anyone know where I should go next? Thanks! Jim
jschner Posted July 26, 2003 Author Posted July 26, 2003 OK I think we have oursleves a mystery. Let me put it this way. I deleted airmail out of the usps shipping module. But airmail keeps showing up at checkout anyway. Anyone at all have a clue where the airmail option is coming from? :? :? Jim
delishus Posted July 31, 2003 Posted July 31, 2003 Jim If you didn't disable the module in admin before you edited the usps.php file, then the airmail info will have been written to the configuration table in the database. To fix it either: a) put the usps.php back to it's original form, then disable it in admin, change the file and re-enable it again so it writes the new config to the configuration table. or B) Edit the configuration table manually and remove the references to any airmail options. Del
jschner Posted August 1, 2003 Author Posted August 1, 2003 Thanks you very much for the reply. However, I tried both methods without luck. I totally removed the usps module then made the changes and then reinstalled it. The options are still there at checkout even though they no longer exist in the usps.php file. I looked through the .sql backup and found the usps module installed but didn't find anything related to mailing options. I searched for priority, airmail, and all instances of usps. I even went from table to table and didn't see anything I recognized as usps shipping options. Real head scratcher. Jim
delishus Posted August 1, 2003 Posted August 1, 2003 It's in the configuration table - look for MODULE_SHIPPING_USPS_TYPES in configuration_key field - then edit the field and remove whatever you don't want from the configuration_value. In phpmyadmin run the following and it will pull all the USPS values for you: SELECT * FROM `configuration` WHERE configuration_key like '%USPS%' Del
Justin WFCOMICS Posted August 1, 2003 Posted August 1, 2003 It's in the configuration table - look for MODULE_SHIPPING_USPS_TYPES in configuration_key field - then edit the field and remove whatever you don't want from the configuration_value. In phpmyadmin run the following and it will pull all the USPS values for you: SELECT * FROM `configuration` WHERE configuration_key like '%USPS%' I'm having the same problem as Jim. BTW, Editing domestic USPS methods happens live without the need to uninstall/install. Anyway, I tried uninstall/install and it didn't work. Also, when using the above syntax in myphpadmin, the MODULE_SHIPPING_USPS_TYPES configuration_key field does not turn up the the results. I'm using 2.2ms2. Any other advice? Justin =)
mdeloach Posted August 4, 2003 Posted August 4, 2003 I'm having the same problem....no solution as of yet Anyone know of a sure fix to this problem? I'd like to display only a few international shipping options...
Justin WFCOMICS Posted August 4, 2003 Posted August 4, 2003 I'm having the same problem....no solution as of yet Anyone know of a sure fix to this problem? I'd like to display only a few international shipping options... I carefully installed Brad Waite's latest version of USPS Methods (version 2.5 for 2.2ms2) and that worked for limiting both domestic and international USPS choices. Woohoo, Brad :)!! http://www.oscommerce.com/community/contributions,487 The only problem I have is that it doesn't work for me if I check "display transit time" under "USPS Options". It sorta hangs and then doesn't grab any prices when the checkout page finally resolves/renders. The "Display weight" option works fine though. I hope this helps!! Justin =)
mdeloach Posted August 4, 2003 Posted August 4, 2003 Thanks...I'll try installing it again. USPS Methods seemed to simply cause errors last time I attempted an install, but I'll compare the contrib to my code line by line and see what happens.
jschner Posted August 4, 2003 Author Posted August 4, 2003 That's awesome! I'll try it too. Thanks for the update and remembering this thread. Jim
jschner Posted August 5, 2003 Author Posted August 5, 2003 Hey I just tried it and it works great!!! Thank You Brad Waite & Fritz Clapp. Jim
gpraceman Posted August 10, 2003 Posted August 10, 2003 I haven't yet upgraded to MS2, I'm working off a heavily moded 5/18/03 snapshot with V2.4 of the USPS mod. Would anyone know if V2.5 would work with that snapshot? Were there really any significant changes to make it compatible with MS2 that would have been made after 5/18? Thanks, Randy Awana Grand Prix and Pinewood Derby racing - Where a child, an adult and a small block of wood combine for a lot of fun and memories.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.