Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / USPS and UPS shipping module update

USPS and UPS shipping module update

Locked

Views: 26,933

Results 21 to 40 of 130
This thread is locked. New replies are disabled.
6 Jan 2010, 2:54 AM
#21
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

USPS and UPS shipping module update

Silly USPS ... I will have an update out but I want to test some other things as it is only International that is goobering up on the ounces ... :rolleyes:

6 Jan 2010, 8:55 AM
#22
sirluck avatar

sirluck

New Zenner

Join Date:
Oct 2007
Posts:
32
Plugin Contributions:
0

Re: USPS and UPS shipping module update

Many thanks for this update. It worked easily for me (ver 1.3.8). No wonder sales were off today before I applied your fix!

6 Jan 2010, 8:35 PM
#23
shaggymac avatar

shaggymac

New Zenner

Join Date:
Aug 2004
Location:
Lancaster, PA
Posts:
26
Plugin Contributions:
0

Re: USPS and UPS shipping module update

Thank you for the update! I had a customer from the UK warn us of the error.

Is there anyway to display International USPS rates from:

  1. First Class Int
  2. Priority
  3. Express

I can re-arrange domestic rates by changing their order in the module page usps.php, however when changing the International rates it "breaks" the module. Thanks in advance.

7 Jan 2010, 3:08 AM
#24
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS and UPS shipping module update

I have not looked at altering the order ... I will have to see what differences there are on this ...

7 Jan 2010, 3:33 AM
#25
causeone avatar

causeone

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Re: USPS and UPS shipping module update

Will the update work for ZC version 1.3.6?

If it won't work as is is there any way to make it work? I'm not looking forward to the 1.3.8 upgrade, and everything was working great with the USPS API until this recent change.

k

7 Jan 2010, 4:42 AM
#26
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS and UPS shipping module update

If you read the post, it explains what you can do to make it work with older versions as well ... :smile:

7 Jan 2010, 4:47 AM
#27
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

Re: USPS and UPS shipping module update

Hi Linda,

Thanks for the added information, I am one of these "if it ain't broke don't fix it" Made changes to main EZorb cart and 9 of the EZorb dealer carts took about 1 hour. Test all shopping carts with no errors. So thanks for a good update.

Larry

7 Jan 2010, 6:44 AM
#28
supersnow avatar

supersnow

Zen Follower

Join Date:
Apr 2007
Location:
California, USA
Posts:
233
Plugin Contributions:
0

Re: USPS and UPS shipping module update

Ajeh:

USPS seems to have trouble managing anything with more than 3 decimals on the ounces ...

Change the code from:

$shipping_ounces = (16 * ($usps_shipping_weight - floor($usps_shipping_weight)));
    $shipping_ounces = (16 * ($usps_shipping_weight - floor($usps_shipping_weight)));
    $shipping_ounces = zen_round($shipping_ounces, 2);
```


Thanks this works great and I can put my tare back to it was before - I really appreciate your help.
7 Jan 2010, 3:02 PM
#29
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS and UPS shipping module update

Please check the link at:
http://www.zen-cart.com/forum/showthread.php?t=144992

for the International fix on the Jan 4 2010 update ... USPS is handling digits differently and only processes 5 digits meaning that good values are:
.12345
1.2345
12.345

bad values are:
.123456
1.23456
12.3456

7 Jan 2010, 3:03 PM
#30
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS and UPS shipping module update

Thanks for the update that this fixed the digit problem on International ... :smile:

9 Jan 2010, 1:34 AM
#31
causeone avatar

causeone

New Zenner

Join Date:
Jul 2008
Posts:
15
Plugin Contributions:
0

Re: USPS and UPS shipping module update

Ajeh:

If you read the post, it explains what you can do to make it work with older versions as well ... :smile:

All I saw was a mention of an adjustment for 1.3.7 - am I missing something else? Or should that also work for 1.3.6?

9 Jan 2010, 3:52 AM
#32
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS and UPS shipping module update

Actually what it says is:
NOTE: for older versions (prior to 1.3.x), try changing the line:

class usps extends base {

to read:

class usps {

That should work on any version that cannot use the extends base on the module ...

12 Jan 2010, 3:12 PM
#33
melmeier01 avatar

melmeier01

New Zenner

Join Date:
Oct 2007
Posts:
10
Plugin Contributions:
0

Re: USPS and UPS shipping module update

thank you for that post! I was having the same problem too with the percentages. Hopefully your suggestion will work.

12 Jan 2010, 3:29 PM
#34
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS and UPS shipping module update

Be sure to check the current updates for the January 4, 2010 module as there have been some changes as of January 12, 2010 ...
http://www.zen-cart.com/forum/showthread.php?t=144992

12 Jan 2010, 6:51 PM
#35
cadoo avatar

cadoo

New Zenner

Join Date:
Nov 2008
Posts:
10
Plugin Contributions:
0

Re: USPS and UPS shipping module update

thanks for getting this module updated and running so quickly!!

i do see that our international customers are still having an issue with the onces being more than 5 digits when they order more than 1 item

"-2147218052 - The ounces field must be less than 5 digits"

i have the latest greatest module installed and i uninstalled and reinstalled it once i uploaded the new file (jan 9th file).

any ideas why this is not working? your help and replies are always very very appreciated!!

12 Jan 2010, 7:04 PM
#36
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS and UPS shipping module update

Odd ... could you give me the Product weight and the Tare settings that you are using so this can be tested?

Also what are your USPS settings?

13 Jan 2010, 11:24 PM
#37
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Re: USPS and UPS shipping module update

Hi Linda.

I'm having problems getting the correct usps shipping charges for first class shipments.

If I go to usps.com to get a rate for a 6oz package shipping from 48042 to 30094 I get a quote for $1.73

If I try to get a quote from my store (https://www.byvalenti.com) the shipping estimator gives me a much higher amount $2.41.

I've spent an hour looking for an answer and haven't been able to find anything. I already updated the usps.php file. My settings are:

Shipping Module
Enable USPS Shipping
True

Enter the USPS Web Tools User ID
XXXXXXXXXXXX

Which server to use
production

Handling Fee
0

Handling Per Order or Per Box
Box

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
--none--

Sort Order
0

All Packages are Machinable
True

USPS Options
Display weight, Display transit time

Domestic Shipping Methods
EXPRESS, PRIORITY, FIRST CLASS, PARCEL

International Shipping Methods
Global Express, Global Express Non-Doc Rect, Global Express Non-Doc Non-Rect, Express Mail Int, Express Mail Int Flat Rate Env, Priority Mail International, Priority Mail Int Flat Rate Env, Priority Mail Int Flat Rate Box, Priority Mail Int Flat Rate Small Box, Priority Mail Int Flat Rate Med Box, Priority Mail Int Flat Rate Lrg Box, First Class Mail Int Lrg Env, First Class Mail Int Package, First Class Mail Int Letters, First Class Mail Int Flats, First Class Mail Int Parcels

Debug Mode
Off

Shipping/Packaging
Enter the Maximum Package Weight you will ship
50lb
Package Tare Small to Medium - added percentage:weight
0:0
Larger packages - added packaging percentage:weight
0:0

Thanks for any help.

13 Jan 2010, 11:48 PM
#38
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS and UPS shipping module update

The only way I can get the wrong value is if I have:
All Packages are Machinable: false

Could you go to the Tools ... Developers Tool Kit ... and in the bottom input box enter:
usps.php

What version comes up in the:
/includes/modules/shipping/usps.php

Can you save your settings and do a REMOVE, INSTALL and reconfigure it?

NOTE: there was an update done on January 9, 2010 and for International, one more change on January 12, 2010:
http://www.zen-cart.com/forum/showthread.php?t=144992

13 Jan 2010, 11:56 PM
#39
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS and UPS shipping module update

NOTE: these are the rates I get via Zen Cart

United States Postal Service (1 x 0.38lbs) (Express Mail (1 - 2 days)) $19.35
United States Postal Service (1 x 0.38lbs) (First-Class Mail (2 - 5 days)) $1.73
United States Postal Service (1 x 0.38lbs) (Priority Mail (2 - 3 days)) $5.05
United States Postal Service (1 x 0.38lbs) (Parcel Post (4 - 7 days)) $4.90
United States Postal Service (1 x 0.38lbs) (Media Mail) $2.38
United States Postal Service (1 x 0.38lbs) (Bound Printed Matter) $2.43
United States Postal Service (1 x 0.38lbs) (Library) $2.26

13 Jan 2010, 11:57 PM
#40
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS and UPS shipping module update

NOTE: these are the rates I get with Zen Cart with the Machinable set to false:

United States Postal Service (1 x 0.38lbs) (Express Mail (1 - 2 days)) $19.35
United States Postal Service (1 x 0.38lbs) (First-Class Mail (2 - 5 days)) $2.07
United States Postal Service (1 x 0.38lbs) (Priority Mail (2 - 3 days)) $5.05
United States Postal Service (1 x 0.38lbs) (Parcel Post (4 - 7 days)) $4.90
United States Postal Service (1 x 0.38lbs) (Media Mail) $2.38
United States Postal Service (1 x 0.38lbs) (Bound Printed Matter) $2.43
United States Postal Service (1 x 0.38lbs) (Library) $2.26