Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / USPS International Shipping

USPS International Shipping

Views: 2,794

Results 1 to 20 of 20
7 Sep 2011, 3:23 AM
#1
serge111 avatar

serge111

New Zenner

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

USPS International Shipping

For international shipping in 1.3.7, if i have choices, lets say

express mail int'l
priority mail int'l
first-class mail int'l

when i go to checkout_payment page, the top choice, in this case, express mail, is always selected, no matter what's selected on previous page

i looked through all the source code for HOURS and for the life of me couldn't figure out what to do! how can i fix this? thanks

i am trying to upgrade to 1.3.9 but i am getting a
"We are unable to find a USPS shipping quote suitable for your mailing address and the shipping methods we typically use."

7 Sep 2011, 3:35 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: USPS International Shipping

Could you please go to post #26 and get the January 2, 2011 C version of USPS and follow all of the steps to install it?
http://www.zen-cart.com/forum/showthread.php?t=171314

It looks like you have installed the A or B version ...

7 Sep 2011, 3:37 AM
#3
serge111 avatar

serge111

New Zenner

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

Re: USPS International Shipping

just did, some improvement - now only "USPS Priority International" is showing ... but not first class international or express international

7 Sep 2011, 1:27 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: USPS International Shipping

What is the Ship From?

What is the Ship To?

What is the weight?

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

What are your settings in the Modules ... Shipping ... if you click on USPS and look at the right panel?

If you go to the Tools ... Developers Tool Kit ... and in the bottom input box enter:
USPS GXG Envelopes

select Catalog and click Search ... what comes up?

8 Sep 2011, 2:32 AM
#5
serge111 avatar

serge111

New Zenner

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

Re: USPS International Shipping

What is the Ship From?
Fullerton, CA 92835

What is the Ship To?
V0G 1L0
BC, Canada

What is the weight?
2lb

What are the settings in Configuration ... Shipping/Packaging?
Country of Origin United States
Postal Code 92835
Enter the Maximum Package Weight you will ship 50
Package Tare Small to Medium - added percentage:weight 0:3
Larger packages - added packaging percentage:weight 10:0
Display Number of Boxes and Weight Status 3
Order Free Shipping 0 Weight Status 0
Shipping Estimator Display Settings for Shopping Cart 1
Display Order Comments on Admin Invoice 1
Display Order Comments on Admin Packing Slip 1

What are your settings in the Modules ... Shipping ... if you click on USPS and look at the right panel?

United States Postal Service

You will need to have registered a Web Tools account with USPS at their website to use this module.

USPS expects you to use pounds as weight measure for your products.

Enable USPS Shipping
True

Enter the USPS Web Tools User ID
507SEBRO5723

Which server to use
production

Handling Fee
3.75

Handling Per Order or Per Box
Box

Tax Class
--none--

Tax Basis
Shipping

Shipping Zone
--none--

Sort Order
0

All Packages are Machinable
False

USPS Options
Display weight, Display transit time

Domestic Shipping Methods
EXPRESS, PRIORITY, FIRST CLASS, PARCEL, MEDIA, BPM, LIBRARY

International Shipping Methods
Global Express, Global Express Non-Doc Rect, Global Express Non-Doc Non-Rect, Global Express 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, First Class Mail Int Lrg Env, First Class Mail Int Package, First Class Mail Int Letter

Debug Mode
Off

If you go to the Tools ... Developers Tool Kit ... and in the bottom input box enter:
USPS GXG Envelopes

select Catalog and click Search ... what comes up?
Error: No matching Configuration Keys were found ... USPS GXG Envelopes

8 Sep 2011, 3:36 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: USPS International Shipping

Do the search again from the Developers Tool Kit and this time select the Catalog from the dropdown and click search ... what comes up?

8 Sep 2011, 3:50 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: USPS International Shipping

2lbs with the extra 3lbs you have added on the Tare Weight gives:

United States Postal Service (1 x 5.00lbs) (Global Express Guaranteed (GXG)** (1 - 3 business days)) $72.50
United States Postal Service (1 x 5.00lbs) (Global Express Guaranteed Non-Document Rectangular (1 - 3 business days)) $72.50
United States Postal Service (1 x 5.00lbs) (Global Express Guaranteed Non-Document Non-Rectangular (1 - 3 business days)) $72.50
United States Postal Service (1 x 5.00lbs) (USPS GXG Envelopes** (1 - 3 business days)) $72.50
United States Postal Service (1 x 5.00lbs) (Express Mail International (3 - 5 business days)) $47.10
United States Postal Service (1 x 5.00lbs) (Express Mail International Flat Rate Envelope (3 - 5 business days)) $26.95
United States Postal Service (1 x 5.00lbs) (Express Mail International Legal Flat Rate Envelope (3 - 5 business days)) $26.95
United States Postal Service (1 x 5.00lbs) (Priority Mail International (6 - 10 business days)) $28.65
United States Postal Service (1 x 5.00lbs) (Priority Mail International Large Flat Rate Box (6 - 10 business days)) $35.50
United States Postal Service (1 x 5.00lbs) (Priority Mail International Medium Flat Rate Box (6 - 10 business days)) $27.95

The search for:
USPS GXG Envelopes

should show:

/includes/modules/shipping/usps.php

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())");

Please check that you have the correct module installed ...

If you do not want the extra weight for the Tare, set the two Tare Rates to 0:0 ...

8 Sep 2011, 8:15 PM
#8
serge111 avatar

serge111

New Zenner

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

Re: USPS International Shipping

hi,

i am not really sure what i should do. search for USPS GXG Envelopes where exactly ... on the bottom of developers toolkit where it says

Look-up in all files
Key or Name:
All Files Look-ups:
File type

I can message you my admin logins if you would be kind enough to help me, i am compeltely stumped, thanks so much

8 Sep 2011, 9:32 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: USPS International Shipping

In the Developers Tool Kit ... at the bottom of the page ... you will see:

Look-up in all files
Key or Name:
and an input box below that ...

Type in:
USPS GXG Envelopes

You will see next to that a dropdown box for:
None
All Files - Catalog/Admin
All Files - Catalog
All Files - Admin

select from that dropdown:

All Files - Catalog

Next to that you will see:

File type

It is set to:

.php

You do not need to change that ...

Then you will see the button SEARCH ... click that ...

9 Sep 2011, 7:55 PM
#10
serge111 avatar

serge111

New Zenner

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

Re: USPS International Shipping

this is what i get

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

Line #140 : 'Global Express Envelopes' => 'USPS GXG<sup>&trade;</sup> Envelopes**', // ID="12" 'USPS GXG

9 Sep 2011, 11:48 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: USPS International Shipping

That tells me you do not have the USPS January 2, 2011 C version installed ...

Please go to Module ... Shipping ...

1 click on USPS and save your current settings to NotePad ...

2 click on REMOVE

3 get the current file from post #26 of:
http://www.zen-cart.com/forum/showthread.php?t=171314

4 FTP the file in it usps.php to the directory:
/includes/modules/shipping/usps.php

5 Install the new USPS shipping module

6 Configure it with your settings

Now see if it works better ...

As a test, then go to the Tools ... Developers Tool Kit ... and in the bottom input box enter:
USPS GXG Envelopes

Select Catalog from the dropdown and click Search ...

What comes up now?

14 Sep 2011, 5:55 AM
#12
serge111 avatar

serge111

New Zenner

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

Re: USPS International Shipping

after uploading the new usps.com, this is the error i get in checkout_shipping screen

"-2147219080 - Missing value for Country."

14 Sep 2011, 1:49 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: USPS International Shipping

Did you go through the steps to do the:
REMOVE
INSTALL
and reconfigure?

Did you try the search in the Tools ... Developers Tool Kit ... to confirm the shipping module is correct on a search for:
USPS GXG Envelopes

15 Sep 2011, 6:41 PM
#14
serge111 avatar

serge111

New Zenner

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

Re: USPS International Shipping

i did remove, then upload the new file, install, and set the new settings and saved them ....

also btw this is on 1.3.7

i've tried to install 1.3.9 but i get "session expired" error ...

15 Sep 2011, 9:10 PM
#15
ajeh avatar

ajeh

Oba-san

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

Re: USPS International Shipping

Did you try the search in the Tools ... Developers Tool Kit ... to confirm the shipping module is correct on a search for:
USPS GXG Envelopes

what comes up?

17 Sep 2011, 11:53 PM
#16
serge111 avatar

serge111

New Zenner

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

Re: USPS International Shipping

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

Line #140 : 'Global Express Envelopes' => 'USPS GXG<sup>&trade;</sup> Envelopes**', // ID="12" 'USPS GXG Envelopes'

18 Sep 2011, 12:31 AM
#17
ajeh avatar

ajeh

Oba-san

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

Re: USPS International Shipping

Go to your Modules ... Shipping ... and click on USPS and do the following:

1 REMOVE

2 Go to your FTP program and go to the directory:
/includes/modules/shipping

and delete the file:
/includes/modules/shipping/usps.php

3 Go to the following thread and from post #26 download the January 2, 2011 C version of USPS:
http://www.zen-cart.com/forum/showthread.php?t=171314

4 unzip the file and using FTP copy the file:
usps.php

to the directory:
/includes/modules/shipping

so you see the new file:
/includes/modules/shipping/usps.php

on the server ...

Go to the Tools ... Developers Tool Kit ... and in the bottom input box enter:
USPS GXG Envelopes

Now what do you see?

18 Sep 2011, 11:56 PM
#19
ajeh avatar

ajeh

Oba-san

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

Re: USPS International Shipping

You are most welcome ... thanks for the update ... :smile:

26 Sep 2011, 9:37 PM
#20
serge111 avatar

serge111

New Zenner

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

Re: USPS International Shipping

none of this is working with 1.37 ... i am trying to get 1.39 to work, but it gives me an error in estimate shipping -

Estimate Shipping Costs
Whoops! Your session has expired ... Please update your shopping cart for Shipping Quote ...

please help ...