Forums / Addon Shipping Modules / USPS International Shipping not working

USPS International Shipping not working

Views: 4,115

Results 1 to 20 of 24
13 Jun 2013, 8:07 PM
#1
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

USPS International Shipping not working

I can get UPS international to show up but using a real Canadian address (of someone's business) does not bring up any international shipping options for USPS. Using new version - 2013-03-27

I've tried changing the decimal places from 3 to 2. A companion website is using the old USPS module with no problems with international at all - not on the same server - but on the same set of servers. Using default USPS settings.

Tare weight 0:0 and both are shipping from the same zip code.

I am quite stumped here. Never run into this before with this version. Have I missed something?

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

13 Jun 2013, 8:09 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: USPS International Shipping not working

On the configuration for USPS did you check some shipping methods for International Shipping?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Jun 2013, 8:12 PM
#3
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: USPS International Shipping not working

Yes, ma'am. In fact I checked them most of them to make sure something would be right (left out envelopes). I feel really stupid posting about this!

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

13 Jun 2013, 8:17 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: USPS International Shipping not working

Can you post what you see in the right side panel when you click on USPS shipping module?

If you turn on the Debug Log in USPS, are you generating any logs when you go to checkout_shipping?

Do you have Curl enabled on this domain? You can check by running:
your_domain.com/includes/extras/curltester.php

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Jun 2013, 8:28 PM
#5
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: USPS International Shipping not working

I turned on screen quickly to get a glimpse so did see this:

Server: production Quote Request Rate Type: Online Cart Weight:0.7 Tare Rates: Small/Medium: 0:0 Large: 10:0 Decimals: 3 Total Weight: 0.7 Pounds: 0 Ounces: 12 Length: 8.625 Width: 5.375 Height: 1.625 ZipOrigination: 14456 ZipDestination: n374s6 Country: Canada City: Simcoe State: Ontario Order Total: $39.99 RESPONSE FROM USPS:

and the response must be something about what is being shipped but not sure - it was a lot of text.

Also I did turn on the logs but didn't find one anywhere - not in logs, cache or module - shipping

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

13 Jun 2013, 8:34 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: USPS International Shipping not working

The logs are generated and put in the /logs whenever you try to get a quote from the USPS server ...

As it has a lot of details in it, that was why I wanted to see if it was giving more information that what you just displayed ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

13 Jun 2013, 9:53 PM
#7
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: USPS International Shipping not working

The log is so big that it won't fit. The ending says:
There's all sorts of info about Canadian law and then several sections that about each service:

<Service ID="14"><Pounds>0</Pounds><Ounces>12</Ounces><MailType>All</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>5.375</Width><Length>8.625</Length><Height>1.625</Height><Girth>0</Girth><Country>CANADA</Country><Postage>4.35</Postage>
<CommercialPostage></CommercialPostage><ExtraServices><ExtraService><ServiceID>0</ServiceID><ServiceName>Registered Mail</ServiceName><Available>True</Available><OnlineAvailable>False</OnlineAvailable><Price>12.95</Price><PriceOnline>0</PriceOnline></ExtraService><ExtraService><ServiceID>2</ServiceID><ServiceName>Return Receipt</ServiceName><Available>True</Available><OnlineAvailable>False</OnlineAvailable><Price>3.50</Price><PriceOnline>0</PriceOnline></ExtraService></ExtraServices><ValueOfContents>39.99</ValueOfContents><InsComment>SERVICE</InsComment><SvcCommitments>Varies by destination</SvcCommitments><SvcDescription>First-Class Mail International Large Envelope**</SvcDescription>
<MaxDimensions>Max. length 15", height 12" or thickness 3/4"</MaxDimensions>
<MaxWeight>4</MaxWeight></Service>

and at the end there's this.

USPS INTERNATIONAL CHECKED: Retail
First-Class Package International ServiceTM**
Priority MailRM International
Priority MailRM International Flat Rate Envelope**
Priority MailRM International Small Flat Rate Box**
Priority MailRM International Medium Flat Rate Box
Priority MailRM International Large Flat Rate Box
Express MailRM International
Global Express GuaranteedRM (GXG)**

<IntlRateV2Request USERID="xxxxxxxxx"> <Revision>2</Revision> <Package ID="0"> <Pounds>0</Pounds> <Ounces>12</Ounces> <MailType>All</MailType> <GXG> <POBoxFlag>N</POBoxFlag> <GiftFlag>N</GiftFlag> </GXG> <ValueOfContents>39.99</ValueOfContents> <Country>Canada</Country> <Container>RECTANGULAR</Container> <Size>REGULAR</Size> <Width>5.375</Width> <Length>8.625</Length> <Height>1.625</Height> <Girth>0</Girth> <OriginZip>14456</OriginZip> <CommercialFlag>Y</CommercialFlag> <ExtraServices> <ExtraService>0</ExtraService> <ExtraService>1</ExtraService> <ExtraService>2</ExtraService> <ExtraService>3</ExtraService> <ExtraService>5</ExtraService> <ExtraService>6</ExtraService> </ExtraServices> </Package> </IntlRateV2Request>

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

13 Jun 2013, 10:25 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: USPS International Shipping not working

Could you zip the log and post it as an attachment ...

It would really help to see from start to finish and I will try to look this over when I get back from dinner ... thanks!

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 Jun 2013, 12:14 PM
#10
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: USPS International Shipping not working

oh yikes, just checked the error logs: it's throwing an error:

simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: Entity: line 34: parser error : xmlParseEntityRef: no name in /home/xxxxxx/public_html/includes/modules/shipping/usps.php on line 952

I have gone back and checked to make sure I have the most recent version - comparing the download to the version number and it is right.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

14 Jun 2013, 4:34 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: USPS International Shipping not working

From your log: > ZipDestination: n374s6 Country: Canada
But that's not a valid zip for Canada. Format should be letter-number-letter-number-letter-number like A1A1A1

Not sure if that is what's breaking the returned quote.

You could try commenting out the big preg_replace on the line before where that simple_xml error is occurring, and see if the error goes away. That will mess up the names of the quoted responses, but if the symptoms go away then maybe the data USPS is returning contains some new symbols or characters that need to be filtered by updating the preg_replace logic.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

14 Jun 2013, 6:38 PM
#12
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: USPS International Shipping not working

You are quite correct - had a 7 instead of a y - using an address of someone you know! I was trying to make sure I was using a real address.

But changing that didn't make a difference. So since the old USPS version is working on the companion site for international shipments, I'm tempted to try that one instead.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

14 Jun 2013, 7:04 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: USPS International Shipping not working

Just as a test, can you try the USPS RateV4 in post #6 just to see if it makes a difference?
http://www.zen-cart.com/showthread.php?207458-Problem-with-new-USPS-Shipping-Module-on-domestic-first-class&highlight=Ratev4

Do the steps of:
REMOVE USPS
Load to server new USPS
INSTALL USPS
Configure USPS

and see if there is any difference in your results?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 Jun 2013, 11:02 PM
#14
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: USPS International Shipping not working

I'll try that out tomorrow and let you know.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

15 Jun 2013, 12:34 PM
#15
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: USPS International Shipping not working

Uh, well, no. For inside US, got no USPS showing at all but same as before for international - can't find a method.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

15 Jun 2013, 3:14 PM
#16
ajeh avatar

ajeh

Oba-san

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

Re: USPS International Shipping not working

Could you set that on Debug Log and try a shipping in the checkout_shipping to the US, Canada and UK and zip those three logs please?

This is really not making a lot of sense ... I tried USPS with your id and it works fine ... I am just not seeing why it is not working for you properly in either of these ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Jun 2013, 1:06 PM
#17
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: USPS International Shipping not working

I did figure out what was wrong with the national and fixed that (my fault entirely) but international never did work on that site. I did go back to last year's version.

But trying it out on a test server - everything is working with your April version. Most bizarre. The test server is set up very similarly to the server this site is on. I would not expect a difference.Attachment #12678

So I have attached logs from all three versions and marked them as such. The more recent version are returning that error message I mentioned at first.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

18 Jun 2013, 5:24 PM
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: USPS International Shipping not working

delia:

The test server is set up very similarly to the server this site is on. I would not expect a difference.
Is it worth importing the live site database to your test server and testing that? ... to rule out store-configuration settings in the live site?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

18 Jun 2013, 5:44 PM
#19
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: USPS International Shipping not working

Easier to ask sysadmin (Q) first about the error message in case it is his server. Then easy enough to pull over to my server.

The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo

18 Jun 2013, 7:10 PM
#20
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: USPS International Shipping not working

I doubt it's server-specific. I'm leaning more towards it being caused by the data.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.