[Contribution] - USPS Methods
#1181
Posted 20 January 2012 - 08:27 PM
#1183
Posted 22 January 2012 - 06:47 PM
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
Posted 22 January 2012 - 11:43 PM
osCommerce V2.2 RC2a
with:
PHP Version 5.3.3
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
Posted 23 January 2012 - 12:28 AM
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
Posted 23 January 2012 - 12:34 AM
videod, on 23 January 2012 - 12:28 AM, said:
#1187
Posted 23 January 2012 - 01:33 AM
#1188
Posted 23 January 2012 - 02:03 AM
'First Class Mail Int Package' => 'First-Class Mail International Package**',to
'First Class Mail Int Package' => 'First-Class Mail International Parcel**',
#1191
Posted 23 January 2012 - 03:31 AM
#1193
Posted 23 January 2012 - 03:45 AM
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
Posted 23 January 2012 - 05:02 AM
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
Posted 23 January 2012 - 09:53 PM
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.
osCommerce V2.2 RC2a
with:
PHP Version 5.3.3
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
Posted 23 January 2012 - 11:49 PM
alancwade, on 23 January 2012 - 09:53 PM, said:
</snip>
#1197
Posted 24 January 2012 - 05:25 PM
alancwade, 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.
osCommerce V2.2 RC2a
with:
PHP Version 5.3.3
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
Posted 26 January 2012 - 08:11 AM
TomB01, on 23 January 2012 - 11:49 PM, said:
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
Posted 26 January 2012 - 08:26 PM
I'm getting following error message when trying to enable the upsp shipping module.
Quote
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.
Kool Kat Jazz Records
#1200
Posted 26 January 2012 - 08:42 PM
Kool Kat Jazz Records









