Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / 1.37 - UPS & International USPS Not working, help!

1.37 - UPS & International USPS Not working, help!

Views: 1,266

Results 1 to 9 of 9
25 Aug 2011, 11:54 PM
#1
serge111 avatar

serge111

New Zenner

Join Date:
Apr 2007
Posts:
57
Plugin Contributions:
0

1.37 - UPS & International USPS Not working, help!

i am running 1.37 - for some reason, recently UPS and USPS International not working at all - not showing up in ESTIMATE SHIPPING.

Only domestic USPS works. When i try to ship USPS International, this is the error i get (it's not passing any values at all!):

<?xml version="1.0"?>

<IntlRateResponse><Package ID="0"><Error><Number>-2147219080</Number><Source>;IntlRate.UnpackIntlRateNode</Source><Description>Missing value for Country.</Description><HelpFile></HelpFile><HelpContext>1000440</HelpContext></Error></Package></IntlRateResponse>

please help!

26 Aug 2011, 12:21 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: 1.37 - UPS & International USPS Not working, help!

You are using a very old version of Zen Cart and really should upgrade to the current v1.3.9h from our home page ...

For the USPS shipping module, go to post #26 on this thread:
http://www.zen-cart.com/forum/showthread.php?t=171314

and get the current January 2, 2011 version C of USPS and follow the instructions for this ...

26 Aug 2011, 1:02 AM
#3
serge111 avatar

serge111

New Zenner

Join Date:
Apr 2007
Posts:
57
Plugin Contributions:
0

Re: 1.37 - UPS & International USPS Not working, help!

okay woof i fixed the USPS international - UPS is still not working , i still need help on that

It turns out that USPS takes in COUNTRY NAMES, and not COUNTRY CODES, archaic and illogical? Yes, siirrie! Amazing, who codes over there, community college dropouts?

For example, RUSSIA as a name works, but zencart had RUSSIAN FEDERATION in the database, and that didn't work, I had to change it!

Anyways, in /public_html/includes/modules/shipping/usps.php line:

'<Country>' . $this->countries[$order->delivery['country']['iso_code_2']] . '</Country>' .

has to be replaced with:

'<Country>' . $order->delivery['country']['title']. '</Country>' .

as you can see, it has to say title instead of iso_code_2 even though in the Zencart database the field name is NAME not TITLE

hope this helps someone!

26 Aug 2011, 1:04 AM
#4
serge111 avatar

serge111

New Zenner

Join Date:
Apr 2007
Posts:
57
Plugin Contributions:
0

Re: 1.37 - UPS & International USPS Not working, help!

i would upgrade, but my zencart is highly customized and i am afraid it would take me forever to get everything working smoothly - i would upgrade in a second if the upgrade process was smooth, like in wordpress ...

26 Aug 2011, 1:48 AM
#5
ajeh avatar

ajeh

Oba-san

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

Re: 1.37 - UPS & International USPS Not working, help!

1 lb to Russian Federation Moscow 123242 gives:

United Parcel Service (1 x 1.00lbs) (Worldwide Saver) $151.37

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

26 Aug 2011, 6:25 AM
#6
serge111 avatar

serge111

New Zenner

Join Date:
Apr 2007
Posts:
57
Plugin Contributions:
0

Re: 1.37 - UPS & International USPS Not working, help!

ups doesn't show for me at all, even though it's enabled, i don't know why ....

26 Aug 2011, 2:17 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: 1.37 - UPS & International USPS Not working, help!

What is the Ship to zip code and the iso_code_2 that you have on your Russia? :unsure:

27 Aug 2011, 10:35 PM
#8
serge111 avatar

serge111

New Zenner

Join Date:
Apr 2007
Posts:
57
Plugin Contributions:
0

Re: 1.37 - UPS & International USPS Not working, help!

my ups doesn't show up at all anywhere neither domestic nor international .... russia goes through as "russia" ... iso code is not accepted by usps

27 Aug 2011, 11:08 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: 1.37 - UPS & International USPS Not working, help!

Go to your Zen Cart Admin and see what you have setup for the Locations / Taxes ... Countries ... and see what the settings are that you are using with Russia ... you cannot just make them up ...

The defaults are:

Name:
Russian Federation

ISO Code (2): RU

ISO Code (3): RUS

Address Format: 1