Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / USPS - Do I have the latest?

USPS - Do I have the latest?

Views: 3,134

Results 1 to 20 of 34
28 Jul 2011, 5:45 PM
#1
levined avatar

levined

New Zenner

Join Date:
Jul 2011
Posts:
5
Plugin Contributions:
0

USPS - Do I have the latest?

Configuring a new Zen Cart install and have a lot of things working. I'm trying to get USPS shipping working and will then configure for international. I've read dozens of threads but not clear if I need to download an update to USPS or should the latest ZEN 1.39h version work? I have USPS enabled with what I think is all the relevant values and pointing at Production (USPS enabled us in prod) but I'm not getting anything back but the Table based shipping.

Thanks!
David

28 Jul 2011, 7:08 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: USPS - Do I have the latest?

The current January 2, 2011 USPS C is in thread #26:
http://www.zen-cart.com/forum/showthread.php?t=171314

Be sure to follow all of the steps to:
1 Save current settings to NotePad

2 REMOVE

3 FTP the new usps.php file to:
/includes/modules/shipping/usps.php

4 Install

5 Re-configure

28 Jul 2011, 10:49 PM
#3
levined avatar

levined

New Zenner

Join Date:
Jul 2011
Posts:
5
Plugin Contributions:
0

Re: USPS - Do I have the latest?

Thanks for the confirmation. Working fine with the new module.

Might have some follow-up questions once I start to mess with options based on zones but I'll give it a go and check back if I need help.

David

2 Aug 2011, 11:25 PM
#4
patternman avatar

patternman

New Zenner

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

Re: USPS - Do I have the latest?

Hello,

I'm usually late to the party for discovering that my site needs a usps update. I've looked but I cannot find any news on this.

I cannot get any rate quotes for international shipping options.
It was working fine just a few weeks ago, but not now.

I've tried re-installing the usps module but the results are the same.

In the past, this has meant that USPS has updated something on their server, and now requires a slight update with zen-cart.

Or it could just be me.
We have had some server updates lately, but that seemed like an unlikely culprit to me since the domestic quotes work just fine.
Has anyone else noticed the international quotes not working?

Thanks so much.
Jason A.

2 Aug 2011, 11:31 PM
#5
levined avatar

levined

New Zenner

Join Date:
Jul 2011
Posts:
5
Plugin Contributions:
0

Re: USPS - Do I have the latest?

patternman:

Or it could just be me.
We have had some server updates lately, but that seemed like an unlikely culprit to me since the domestic quotes work just fine.
Has anyone else noticed the international quotes not working?

Thanks so much.
Jason A.
Jason,

It is working ok for me with the update referenced at the start of this thread, though if it was working a couple of weeks ago I'm sure you already had that update.

3 Aug 2011, 6:03 PM
#6
patternman avatar

patternman

New Zenner

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

Re: USPS - Do I have the latest?

Thanks for your input.
I'm still stumped on this.
Looking through my orders, I can confirm that it was working on July 24th. But not now.
Yes I had the latest version. I reinstalled the usps module anyway. No luck there.
Maybe my brain can think of something when I'm asleep...
:dontgetit

Jason.

3 Aug 2011, 6:16 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: USPS - Do I have the latest?

If you have the USPS from the link I posted in post #2 above, then you should be using the current one ...

What are your settings in the Configuration ... Shipping/Packaging ...

What is your Ship From of the Order that you are testing?

What is your Ship To of the Order that you are testing?

What is the weight of the Order that you are testing?

3 Aug 2011, 7:00 PM
#8
patternman avatar

patternman

New Zenner

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

Re: USPS - Do I have the latest?

Hi Ajeh,
I'm honored to have your attention on this one.
Indeed, I have the latest version that you referred to.
I even reinstalled for good measure.

Here are my settings:

Enable USPS Shipping
True

Enter the USPS Web Tools User ID
[my usps user id]

Which server to use
production

Handling Fee
.20

Handling Per Order or Per Box
Order

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
--none--

Sort Order
0

All Packages are Machinable
False

USPS Options
Display transit time

Domestic Shipping Methods
PRIORITY, FIRST CLASS, PARCEL

International Shipping Methods
Priority Mail International, First Class Mail Int Package

Debug Mode
Off

Ship From: 98340
Ship To: I've tried a few countries: Australia, New Zealand, United Kingdom, Canada.
United States works just fine.
Order weight: 0.41 lbs

An interesting thing came up as I was doing further testing:
This only occurs during checkout, not with the shipping estimator.
When I use an international address, the usps module displays this message:
-2147218052 - The ounces field must be less than 5 digits

With a USA address, everything seems to work just fine.

Thanks for your help.
Jason A.

3 Aug 2011, 7:19 PM
#10
patternman avatar

patternman

New Zenner

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

Re: USPS - Do I have the latest?

Hi David,
I appreciate all the help I can get.
Yes, I've tried both ways - with 2 or 3 in that spot.
Same results.

Jason

3 Aug 2011, 11:00 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: USPS - Do I have the latest?

When I ship to Queensland Australia Zip Code 4000 ... I get:

United States Postal Service (1 x 0.41lbs) (Global Express Guaranteed (GXG)** (1 - 3 business days)) $47.95
United States Postal Service (1 x 0.41lbs) (Global Express Guaranteed Non-Document Rectangular (1 - 3 business days)) $47.95
United States Postal Service (1 x 0.41lbs) (Global Express Guaranteed Non-Document Non-Rectangular (1 - 3 business days)) $47.95
United States Postal Service (1 x 0.41lbs) (USPS GXG Envelopes** (1 - 3 business days)) $47.95
United States Postal Service (1 x 0.41lbs) (Express Mail International (3 - 5 business days)) $29.95
United States Postal Service (1 x 0.41lbs) (Express Mail International Flat Rate Envelope (3 - 5 business days)) $29.95
United States Postal Service (1 x 0.41lbs) (Express Mail International Legal Flat Rate Envelope (3 - 5 business days)) $29.95
United States Postal Service (1 x 0.41lbs) (Priority Mail International (6 - 10 business days)) $28.75
United States Postal Service (1 x 0.41lbs) (Priority Mail International Large Flat Rate Box (6 - 10 business days)) $58.50
United States Postal Service (1 x 0.41lbs) (Priority Mail International Medium Flat Rate Box (6 - 10 business days)) $45.50
United States Postal Service (1 x 0.41lbs) (Priority Mail International Small Flat Rate Box** (6 - 10 business days)) $13.95
United States Postal Service (1 x 0.41lbs) (Priority Mail International DVD Flat Rate Box** (6 - 10 business days)) $13.95
United States Postal Service (1 x 0.41lbs) (Priority Mail International Large Video Flat Rate Box** (6 - 10 business days)) $13.95
United States Postal Service (1 x 0.41lbs) (Priority Mail International Flat Rate Envelope** (6 - 10 business days)) $13.95
United States Postal Service (1 x 0.41lbs) (Priority Mail International Legal Flat Rate Envelope** (6 - 10 business days)) $13.95
United States Postal Service (1 x 0.41lbs) (Priority Mail International Padded Flat Rate Envelope** (6 - 10 business days)) $13.95
United States Postal Service (1 x 0.41lbs) (Priority Mail International Gift Card Flat Rate Envelope** (6 - 10 business days)) $13.95
United States Postal Service (1 x 0.41lbs) (Priority Mail International Small Flat Rate Envelope** (6 - 10 business days)) $13.95
United States Postal Service (1 x 0.41lbs) (First-Class Mail International Package** (Varies by country)) $6.94
United States Postal Service (1 x 0.41lbs) (First-Class Mail International Large Envelope** (Varies by country)) $6.52

What are your settings in the Configuration ... Shipping/Packaging ...

If you so a search in the Tools ... Developers Tool Kit ... in the bottom input box and select Catalog and enter:
usps.php

then click SEARCH ...

what do you get on the version ID ...

Also do a search on:
USPS GXG Envelopes

what comes up?

3 Aug 2011, 11:27 PM
#12
patternman avatar

patternman

New Zenner

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

Re: USPS - Do I have the latest?

Hi Ajeh,

Configuration for Shipping/Packaging:

Country of Origin United States
Postal Code 98340
Enter the Maximum Package Weight you will ship 20
Package Tare Small to Medium - added percentage:weight 0:0.57
Larger packages - added packaging percentage:weight 0
Display Number of Boxes and Weight Status 0
Order Free Shipping 0 Weight Status 0
Shipping Estimator Display Settings for Shopping Cart 2
USPS CASS User ID [my user id]
Enable CASS Address Validation true
Display Order Comments on Admin Invoice 2
Display Order Comments on Admin Packing Slip 2

usps.php

Line #9 : * @version $Id: usps.php 18306 2011-01-03 01:09:49Z ajeh $

USPS GXG Envelopes

Line #117 : 'Global Express Envelopes' => 'USPS GXG Envelopes',

Line #138 : 'USPS GXG Envelopes' => 'USPS GXG Envelopes**', // ID="12" 'USPS GXG Envelopes'

Line #325 : 'Global Express, Global Express Non-Doc Rect, Global Express Non-Doc Non-Rect, USPS GXG Envelopes, Express Mail Int, Express Mail Int Flat Rate Env, Express Mail Int Legal, Priority Mail International, Priority Mail Int Flat Rate Env, Priority Mail Int Flat Rate Small Box, Priority Mail Int Flat Rate Med Box, Priority Mail Int Flat Rate Lrg Box, Priority Mail Int DVD, Priority Mail Int Lrg Video, Priority Mail Int Legal Flat Rate Env, Priority Mail Int Padded Flat Rate Env, Priority Mail Int Gift Card Flat Rate Env, Priority Mail Int Small Flat Rate Env, First Class Mail Int Lrg Env, First Class Mail Int Package, First Class Mail Int Letter',

Line #327 : array('Global Express', 'Global Express Non-Doc Rect', 'Global Express Non-Doc Non-Rect', 'USPS GXG Envelopes', 'Express Mail Int', 'Express Mail Int Flat Rate Env', 'Express Mail Int Legal', 'Priority Mail International', 'Priority Mail Int Flat Rate Env', 'Priority Mail Int Flat Rate Small Box', 'Priority Mail Int Flat Rate Med Box', 'Priority Mail Int Flat Rate Lrg Box', 'Priority Mail Int DVD', 'Priority Mail Int Lrg Video', 'Priority Mail Int Legal Flat Rate Env', 'Priority Mail Int Padded Flat Rate Env', 'Priority Mail Int Gift Card Flat Rate Env', 'Priority Mail Int Small Flat Rate Env', 'First Class Mail Int Lrg Env', 'First Class Mail Int Package', 'First Class Mail Int Letter'), ', now())");

Unfortunately, I'm still using 1.3.8a.
We had some server upgrades last week, and I'm guessing that the current version would work fine. (We upgraded PHP from 5.2.14 to 5.2.17.)
I was really hoping to skip 1.3.9 and go directly to 1.5.
I know, I know... I need to upgrade. Excuses... time constraints, workload, blah, blah, blah.

Anyway, I really appreciate any help you can give.
Thanks so much.
Jason

3 Aug 2011, 11:37 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: USPS - Do I have the latest?

Just for giggles and grin ... could you go to the Modules ... Shipping ... and click on USPS and do a REMOVE, INSTALL and reconfigure it ...

4 Aug 2011, 12:15 AM
#14
patternman avatar

patternman

New Zenner

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

Re: USPS - Do I have the latest?

Ok. Not a hassle. :smile:

But no luck. Same results.

Any other ideas?

Cheers.
Jason

4 Aug 2011, 12:22 AM
#15
ajeh avatar

ajeh

Oba-san

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

Re: USPS - Do I have the latest?

Go to the Tools ... Developers Tool Kit ... and in the bottom input box enter:
$shipping_ounces

and select Catalog ... and click Search ...

What comes up?

4 Aug 2011, 12:29 AM
#16
patternman avatar

patternman

New Zenner

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

Re: USPS - Do I have the latest?

$shipping_ounces

Line #190 : $shipping_ounces = (16 * ($usps_shipping_weight - floor($usps_shipping_weight)));

Line #192 : $shipping_ounces = zen_round($shipping_ounces, 2);

Line #195 : case ($shipping_pounds == 0 and $shipping_ounces < 6):

Line #215 : $this->_setWeight($shipping_pounds, $shipping_ounces);

For line 192, I've tried a 2 or a 3.
Same results.
Jason

4 Aug 2011, 12:34 AM
#17
ajeh avatar

ajeh

Oba-san

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

Re: USPS - Do I have the latest?

For more giggles and grins ... can you install the UPS shipping module and see if you get any quotes for Australia ...

Also what are you using for the Australia address? :unsure:

4 Aug 2011, 12:45 AM
#18
patternman avatar

patternman

New Zenner

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

Re: USPS - Do I have the latest?

Tried the UPS module:

United Parcel Service (Worldwide Saver) $94.81
United Parcel Service (Worldwide Expedited) $89.77

For the Australia address, I've tried a few, all with the same results.
Currently I'm using Queensland 4814.

Thanks.
Jason

4 Aug 2011, 12:46 AM
#19
ajeh avatar

ajeh

Oba-san

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

Re: USPS - Do I have the latest?

Could you edit the file:
/includes/modules/shipping/usps.php

and add the code in RED for:

    $shipping_ounces = zen_round($shipping_ounces, 2);
echo 'OUNCES SAYS: ' . $shipping_ounces . '<br>';

Then when you run the Estimator or the checkout_shipping ... you should see that echoed on the screen near the top ... what does it say?

4 Aug 2011, 12:51 AM
#20
patternman avatar

patternman

New Zenner

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

Re: USPS - Do I have the latest?

OUNCES SAYS: 6.55999999999999960920149533194489777088165283203125

The rounding function isn't working?