Jump to content



Latest News: (loading..)

* * * - - 1 votes

[Contribution] - USPS Methods


  • Please log in to reply
1252 replies to this topic

#1181   FoundSoul

FoundSoul
  • Members
  • 33 posts
  • Real Name:Jerry Hoffmann
  • Location:Duluth, GA 30097. USA

Posted 20 January 2012 - 08:27 PM

Any progress on this to report?
Jerry a.k.a. 'FoundSoul'

#1182   TomB01

TomB01
  • Members
  • 54 posts
  • Real Name:Tom Blanchard
  • Gender:Male
  • Location:Atlanta

Posted 22 January 2012 - 06:18 PM

View PostFoundSoul, on 20 January 2012 - 08:27 PM, said:

Any progress on this to report?
Yes - bad progress.  Today USPS made the change and my store's shipping is broken.

Please help!

#1183   TomB01

TomB01
  • Members
  • 54 posts
  • Real Name:Tom Blanchard
  • Gender:Male
  • Location:Atlanta

Posted 22 January 2012 - 06:47 PM

After further investigation and testing, it appears that the only thing broken is "First Class Int Package" (1st Class International) shipping.

It's probably nothing but USPS changing a text string again, but I'm at a loss on my own.

EDIT: Looks like they changed "Package" to "Parcel", but it seems to come up OK on my shopping carts for domestic orders, but it's broken for international.

Edited by TomB01, 22 January 2012 - 06:49 PM.


#1184   spiritalan

spiritalan
  • Members
  • 108 posts
  • Real Name:Alan
  • Gender:Male
  • Location:California

Posted 22 January 2012 - 11:43 PM

Since the USPS change today, shipping quotes are showing up but they are incorrect. With the handling fee and tare weight taken into account, the quotes do not match the quotes from USPS website. I'm using USPS Methods v. 5.2.2
Production:
osCommerce V2.2 RC2a
with:
PHP Version 5.1.6
PHP Version 5.3.3
MySQL Version 5.0.27
MySQL Version 5.1.67
VPS box

Development:
osCommerce V. 2.3.3
with:
PHP Version 5.3.3-22
MySQL Version 5.1.67
VPS Box

#1185   videod

videod
  • Members
  • 85 posts
  • Real Name:Dave
  • Gender:Male

Posted 23 January 2012 - 12:28 AM

I am seeing similar results where OSC isn't charging enough for shipping minus the handling fees for domestic First Class Mail . I appears that the contribution is not adding our handling fee for First Class Mail.  I don't know where to start to find the issue, but I am also using USPS methods v5.2.2
Production:
osCommerce v2.3.3
PHP Version 5.3.21
MySQL Version 5.0.91-log
Shared Hosting - GoDaddy

----------------------------------------------
Development:
osCommerce 2.3.3 & 3.0.1
CentOS 5.9 / CentOS 6.4 / Unbuntu 12 / Server 2008 R2
Apache 2.2.3 / 2.2.17
PHP Version 5.3.18 & 5.4
MySQL Version 5.0.77 /  5.0.91 /  5.1.54 / 5.5
Hosted on VMWare Server version 2.0 & VirtualBox 4.2.6

#1186   TomB01

TomB01
  • Members
  • 54 posts
  • Real Name:Tom Blanchard
  • Gender:Male
  • Location:Atlanta

Posted 23 January 2012 - 12:34 AM

View Postvideod, on 23 January 2012 - 12:28 AM, said:

I am seeing similar results where OSC isn't charging enough for shipping minus the handling fees for domestic First Class Mail . I appears that the contribution is not adding our handling fee for First Class Mail.  I don't know where to start to find the issue, but I am also using USPS methods v5.2.2
Oops!  I didn't check that, but yes - I can confirm that my domestic First Class shipping is not charging enough.

#1187   Jayman11

Jayman11
  • Members
  • 176 posts
  • Real Name:Jason

Posted 23 January 2012 - 01:33 AM

Only issue on mine is the First Class Intl. Rates seem good...but the Interntl first class isn't showing up.

#1188   Jayman11

Jayman11
  • Members
  • 176 posts
  • Real Name:Jason

Posted 23 January 2012 - 02:03 AM

Yay! I fixed it on mine.....just change
'First Class Mail Int Package' => 'First-Class Mail International Package**',
to
'First Class Mail Int Package' => 'First-Class Mail International Parcel**',


#1189   TomB01

TomB01
  • Members
  • 54 posts
  • Real Name:Tom Blanchard
  • Gender:Male
  • Location:Atlanta

Posted 23 January 2012 - 02:32 AM

View PostJayman11, on 23 January 2012 - 02:03 AM, said:

Yay! I fixed it on mine.....just change
'First Class Mail Int Package' => 'First-Class Mail International Package**',
to
'First Class Mail Int Package' => 'First-Class Mail International Parcel**',
Where?

#1190   Jayman11

Jayman11
  • Members
  • 176 posts
  • Real Name:Jason

Posted 23 January 2012 - 02:44 AM

View PostTomB01, on 23 January 2012 - 02:32 AM, said:


Where?

Includes\modules\shipping\usps.php

Just go in there and search for the original string and change one thing....Package to Parcel. :)

#1191   TomB01

TomB01
  • Members
  • 54 posts
  • Real Name:Tom Blanchard
  • Gender:Male
  • Location:Atlanta

Posted 23 January 2012 - 03:31 AM

OK - thanks!  That fixed it for International, but as others have said, it is still not adding in the handling fee.

#1192   Jayman11

Jayman11
  • Members
  • 176 posts
  • Real Name:Jason

Posted 23 January 2012 - 03:42 AM

View PostTomB01, on 23 January 2012 - 03:31 AM, said:

OK - thanks!  That fixed it for International, but as others have said, it is still not adding in the handling fee.

Not sure there. Mine looked fine from what I could see when it came to the handling fee.

#1193   TomB01

TomB01
  • Members
  • 54 posts
  • Real Name:Tom Blanchard
  • Gender:Male
  • Location:Atlanta

Posted 23 January 2012 - 03:45 AM

OK, for those who lost their handling charge on First Class Package (Parcel), there's a string that has to be replaced around the middle of the usps.php file:

Change "case 'First-Class Mail Package':" to "case 'First-Class Mail Parcel':".  This worked for me and the handling charge is now added in.  Look for the "$postage = $postage + $this->handling[8];" string.  The case statement for 'First-Class Mail Package' is about 30 lines below that.

#1194   videod

videod
  • Members
  • 85 posts
  • Real Name:Dave
  • Gender:Male

Posted 23 January 2012 - 05:02 AM

The contribution I am using has the following string "case 'First-Class Mail regimark Package':"   I changed it to case "'First-Class Mail regimark Parcel':" and that took care of the issue.  Thanks for the insight and fix to this issue!!
Production:
osCommerce v2.3.3
PHP Version 5.3.21
MySQL Version 5.0.91-log
Shared Hosting - GoDaddy

----------------------------------------------
Development:
osCommerce 2.3.3 & 3.0.1
CentOS 5.9 / CentOS 6.4 / Unbuntu 12 / Server 2008 R2
Apache 2.2.3 / 2.2.17
PHP Version 5.3.18 & 5.4
MySQL Version 5.0.77 /  5.0.91 /  5.1.54 / 5.5
Hosted on VMWare Server version 2.0 & VirtualBox 4.2.6

#1195   spiritalan

spiritalan
  • Members
  • 108 posts
  • Real Name:Alan
  • Gender:Male
  • Location:California

Posted 23 January 2012 - 09:53 PM

A quick fix for me, but this contribution still needs a cleanup.

I’m using USPS Methods version 5.2.2. My problem has been narrowed down to the option in the USPS module in Admin “Domestic Delivery Confirmation”. With this option enabled it causes errors in quotes for both Domestic First Class and Priority mail. A temporary work around would be to disable the option and add $0.19 to the First Class Mail handling fee. Domestic Quotes are now correct.

I did change 'First-Class Mail regimark Package' in includes/modules/shipping/usps.php to 'First-Class Mail regimark Parcel'. This is located in two places in this file. However, with “Domestic Delivery Confirmation” disabled it did not make any noticable difference.

I have not yet checked on International mail options, just domestic.

Thanks to videod for his invaluable private help.
Production:
osCommerce V2.2 RC2a
with:
PHP Version 5.1.6
PHP Version 5.3.3
MySQL Version 5.0.27
MySQL Version 5.1.67
VPS box

Development:
osCommerce V. 2.3.3
with:
PHP Version 5.3.3-22
MySQL Version 5.1.67
VPS Box

#1196   TomB01

TomB01
  • Members
  • 54 posts
  • Real Name:Tom Blanchard
  • Gender:Male
  • Location:Atlanta

Posted 23 January 2012 - 11:49 PM

View Postalancwade, on 23 January 2012 - 09:53 PM, said:

A quick fix for me, but this contribution still needs a cleanup.
</snip>
Agreed.  I sent a PM yesterday to fulluvscents and wkdwich before some of us found the temporary fixes.  They fixed all of this last year when USPS blew up things worse than this.  Fulluvscents made 5.2.2, not sure who did the updates since then.

#1197   spiritalan

spiritalan
  • Members
  • 108 posts
  • Real Name:Alan
  • Gender:Male
  • Location:California

Posted 24 January 2012 - 05:25 PM

In my last post #1195 I said:

View Postalancwade, on 23 January 2012 - 09:53 PM, said:


I did change 'First-Class Mail regimark Package' in includes/modules/shipping/usps.php to 'First-Class Mail regimark Parcel'. This is located in two places in this file. However, with “Domestic Delivery Confirmation” disabled it did not make any noticable difference.


However, after more testing there is a noticible difference. If you do not change "Package" to "Parcel" in these places listed above, your handling fee will not be added in for First Class Mail.
Production:
osCommerce V2.2 RC2a
with:
PHP Version 5.1.6
PHP Version 5.3.3
MySQL Version 5.0.27
MySQL Version 5.1.67
VPS box

Development:
osCommerce V. 2.3.3
with:
PHP Version 5.3.3-22
MySQL Version 5.1.67
VPS Box

#1198   tomalok

tomalok
  • Members
  • 3 posts
  • Real Name:jake buchholz

Posted 26 January 2012 - 08:11 AM

View PostTomB01, on 23 January 2012 - 11:49 PM, said:

Agreed.  I sent a PM yesterday to fulluvscents and wkdwich before some of us found the temporary fixes.  They fixed all of this last year when USPS blew up things worse than this.  Fulluvscents made 5.2.2, not sure who did the updates since then.

I've just uploaded "6.1a", incorporating the Package -> Parcel text changes, and cleaning up some cruft that was in the 6.1 zip.

#1199   pederb

pederb
  • Members
  • 442 posts
  • Real Name:Peder
  • Gender:Male
  • Location:Oakland, CA

Posted 26 January 2012 - 08:26 PM

Hello,

I'm getting following error message when trying to enable the upsp shipping module.

Quote

Shipping    Back

Deprecated: Assigning the return value of new by reference is deprecated in /home/wihirt/public_html/catalog/*********/includes/classes/xml_5.php on line 25

Warning: include(/home/wihirt/public_html/catalog/includes/languages/english/modules/shipping/uspxs.php) [function.include]: failed to open stream: No such file or directory in /home/wihirt/public_html/catalog/******/modules.php on line 134

Warning: include() [function.include]: Failed opening '/home/wihirt/public_html/catalog/includes/languages/english/modules/shipping/uspxs.php' for inclusion (include_path='.:/usr/lib/php') in /home/wihirt/public_html/catalog/******/modules.php on line 134

Fatal error: Cannot redeclare class usps in /home/wihirt/public_html/catalog/includes/modules/shipping/uspxs.php on line 16
Modules Sort Order Action Flat Rate     Per Item Table Rate    United States Postal Service

Please advise

Cheers

Edited by pederb, 26 January 2012 - 08:29 PM.

-Peder Beckman-
Kool Kat Jazz Records

#1200   pederb

pederb
  • Members
  • 442 posts
  • Real Name:Peder
  • Gender:Male
  • Location:Oakland, CA

Posted 26 January 2012 - 08:42 PM

I updated today to 6.0a and I'm running 2.3.1
-Peder Beckman-
Kool Kat Jazz Records