OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Fix for missing First Class International
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Shipping Modules
madsci
Looks like the API changed again, and for once I remembered to test it. I found only first-class international missing, but I didn't check all methods, just the ones I used. The fix was to replace "First-Class Mail International" with "First Class Mail International Package" (note the missing dash and addition of 'package'), in /catalog/includes/modules/shipping/usps.php. Hope that helps someone.
Dennisra
QUOTE (madsci @ May 12 2008, 12:14 PM) *
Looks like the API changed again, and for once I remembered to test it. I found only first-class international missing, but I didn't check all methods, just the ones I used. The fix was to replace "First-Class Mail International" with "First Class Mail International Package" (note the missing dash and addition of 'package'), in /catalog/includes/modules/shipping/usps.php. Hope that helps someone.


This is part of the answer but not quite it totally. First Class Mail International Package returns a mailing cost of $8.60 for less than one ounce.
ccgrealm
According to the email that I received from USPS, there are actually 3 First Class Mail International formats now: Letter, Flat, and Parcel, which would explain the high cost for 1oz. at the package price. I'm sure the Letter option is less...
Dennisra
QUOTE (ccgrealm @ May 13 2008, 02:08 PM) *
According to the email that I received from USPS, there are actually 3 First Class Mail International formats now: Letter, Flat, and Parcel, which would explain the high cost for 1oz. at the package price. I'm sure the Letter option is less...


How could you have all three options available?
nicklestud
Just to backup the quick fix to get USPS First Class International up and running, anywhere in the includes/modules/shipping/usps.php file where it says
'First-Class Mail International' should be changed to
'First Class Mail International Package'

Make sure the dash is taken out of the word: First Class.

The difference between Letter, Large Enveloped (Flats), and Packages is the following:
  • A letter is just paper correspondence in a small envelope. It only goes up to 3 ounces.
  • A Large Envelope is like a letter where it needs to be flat, like paper, but can be put into a large envelope. Like a 9x11 manila envelope. There should be no lumps or unevenness in the Envelope - needs to be flat and uniform - but can be up to 4 lbs.
  • A Package is anything up to 4 lbs. Including a box or a lumpy envelope.

I use Package for all purposes of shipping due to the nature of our products (they are lumpy.) It is totally confusing to offer three types, and if I could get my hands on the guy whom decides these things at USPS, Id give him a wedgie like no other. More on Int. First Class here:

http://www.usps.com/prices/first-class-mai...onal-prices.htm

If you need all three, you may think of installing the latest contribution to this module. But the quick fix above should get your international customers Int. First Class choice again.

I hope this helps.
Dennisra
nicklestud

Thank you.
TomB01
Thanks much for this fix!!

Please - anyone - let us know if you come up with additional fixes. Looking at a couple of the other threads, domestic Priority and Parcel Post may be messed up, too. Also, while most of mine are packages, there are occasions where I would use First Class Letter where it's thin enough to fit through the Postal worker's test slot.

USPS e-mailed me about the possible API changes implying that nothing would be affected. After the last fiasco (Uppercase-lowercase changes), though, I figured this would mess things up. mad.gif
mosc

In the usps.php file I was able to edit this line:


$this->FirstClassIntType = 'Package'; //OPTIONS: 'Letters', 'Package', 'Large Envelope'

I can set it to Package and to Large Envelope, but Letters doesn't work????


Any ideas?
amcolbert
QUOTE (madsci @ May 12 2008, 12:14 PM) *
Looks like the API changed again, and for once I remembered to test it. I found only first-class international missing, but I didn't check all methods, just the ones I used. The fix was to replace "First-Class Mail International" with "First Class Mail International Package" (note the missing dash and addition of 'package'), in /catalog/includes/modules/shipping/usps.php. Hope that helps someone.


Hi,

I tried changing this in the code and in the SQL db and nothing. I have USPS Methods 4.1 installed. First Class Domestic and International do not show up for me. Any help will be very much appreciated. Thank you.
peachc
QUOTE (amcolbert @ May 16 2008, 08:14 PM) *
Hi,



I tried changing this in the code and in the SQL db and nothing. I have USPS Methods 4.1 installed. First Class Domestic and International do not show up for me. Any help will be very much appreciated. Thank you.


I had the same problem. To fix you need to do the following:
1) download , install USPS Methods 4.1 Beta - simple install and has the may 12th First class int fix
http://www.oscommerce.com/community/contri...ch,USPS+Methods
2) Update options in: includes\modules\shipping\usps.php
Look for FirstClassIntType update to Package as below :
/ /FIRST CLASS MAIL INTERNATIONAL OPTION:
$this->FirstClassIntType = 'Package'; //OPTIONS: 'Letters', 'Package', 'Large Envelope'

Done!
AbyssRecords
QUOTE (madsci @ May 12 2008, 05:14 PM) *
Looks like the API changed again, and for once I remembered to test it. I found only first-class international missing, but I didn't check all methods, just the ones I used. The fix was to replace "First-Class Mail International" with "First Class Mail International Package" (note the missing dash and addition of 'package'), in /catalog/includes/modules/shipping/usps.php. Hope that helps someone.


How do you get into this to make these changes, could you help me??? My we guy is sick and unable to get this corrected for me at this time. Thanks Dan
lavs
1st class international is STILL not working for me. I've uploaded 4.1.2 file, made changes to the wording on the 1st class intl. postage in usps.php as suggested and still can't get it to be added as a shipping option (though it shows up in my module, it isn't being offered to my customers, just priority) Any ideas? HELP
kymar
QUOTE (lavs @ May 28 2008, 10:49 AM) *
1st class international is STILL not working for me. I've uploaded 4.1.2 file, made changes to the wording on the 1st class intl. postage in usps.php as suggested and still can't get it to be added as a shipping option (though it shows up in my module, it isn't being offered to my customers, just priority) Any ideas? HELP

You may need to delete and re-install the module via Admin (or delete and re-create the database), not just replace the file, to get the changes to work. Otherwise (someone correct me if I'm wrong), the database may not be fully updated.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.