Canada USPS Shipping

Posted By SAbow Wed 24 Jan 2018
Add to Favorites0
Author Message
SAbow
 Posted Wed 24 Jan 2018
Supreme Being

Supreme Being - (45,065 reputation)Supreme Being - (45,065 reputation)Supreme Being - (45,065 reputation)Supreme Being - (45,065 reputation)Supreme Being - (45,065 reputation)Supreme Being - (45,065 reputation)Supreme Being - (45,065 reputation)Supreme Being - (45,065 reputation)Supreme Being - (45,065 reputation)

Group: Forum Members
Last Active: Tue 2 Feb 2021
Posts: 77, Visits: 334
I have several Kartris websites. At least two of them do not show USPS shipping estimates for addresses in Canada.I tried many other countries - they are all getting the shipping estimates fine.

Can you think of anything that I may be doing wrong? Otherwise it looks like it may be a bug in kartris...?
 Capture.jpeg (3 views, 6.44 KB)
SAbow Marked As Answer
 Posted Tue 30 Jan 2018
Supreme Being

Supreme Being - (45,065 reputation)Supreme Being - (45,065 reputation)Supreme Being - (45,065 reputation)Supreme Being - (45,065 reputation)Supreme Being - (45,065 reputation)Supreme Being - (45,065 reputation)Supreme Being - (45,065 reputation)Supreme Being - (45,065 reputation)Supreme Being - (45,065 reputation)

Group: Forum Members
Last Active: Tue 2 Feb 2021
Posts: 77, Visits: 334
I changed the code in USPS.vb (in the dll)

from:


If LCase(objShippingDetails.RecipientsAddress.CountryIsoCode) <> "us" Then


url = "?API=IntlRateV2&XML=<IntlRateV2Request USERID=""{0}""><Package ID=""0""><Pounds>{1}</Pounds><Ounces>{2}</Ounces><Machinable>{3}</Machinable><MailType>{4}</MailType><ValueOfContents>{5}</ValueOfContents><Country>{7}</Country><Container>{6}</Container><Size>{8}</Size><Width>{9}</Width><Length>{10}</Length><Height>{11}</Height><Girth>{12}</Girth></Package></IntlRateV2Request>"


Else
url = "?API=RateV4&XML=<RateV4Request USERID=""{0}""><Revision/><Package ID=""0""><Service>{1}</Service><ZipOrigination>{2}</ZipOrigination><ZipDestination>{3}</ZipDestination><Pounds>{4}</Pounds><Ounces>{5}</Ounces><Container>{6}</Container><Size>{8}</Size><Width>{9}</Width><Length>{10}</Length><Height>{11}</Height><Girth>{12}</Girth><Machinable>{7}</Machinable><ReturnLocations></ReturnLocations><ReturnServiceInfo></ReturnServiceInfo><ShipDate>{13}</ShipDate></Package></RateV4Request>"
End If



to




If LCase(objShippingDetails.RecipientsAddress.CountryIsoCode) <> "us" Then

If LCase(objShippingDetails.RecipientsAddress.CountryIsoCode) = "ca" Then
url = "?API=IntlRateV2&XML=<IntlRateV2Request USERID=""{0}""><Revision>2</Revision><Package ID=""0""><Pounds>{1}</Pounds><Ounces>{2}</Ounces><Machinable>{3}</Machinable><MailType>{4}</MailType><ValueOfContents>{5}</ValueOfContents><Country>{7}</Country><Container>{6}</Container><Size>{8}</Size><Width>{9}</Width><Length>{10}</Length><Height>{11}</Height><Girth>{12}</Girth><OriginZip>11219</OriginZip></Package></IntlRateV2Request>"
Else
url = "?API=IntlRateV2&XML=<IntlRateV2Request USERID=""{0}""><Package ID=""0""><Pounds>{1}</Pounds><Ounces>{2}</Ounces><Machinable>{3}</Machinable><MailType>{4}</MailType><ValueOfContents>{5}</ValueOfContents><Country>{7}</Country><Container>{6}</Container><Size>{8}</Size><Width>{9}</Width><Length>{10}</Length><Height>{11}</Height><Girth>{12}</Girth></Package></IntlRateV2Request>"
End If

Else
url = "?API=RateV4&XML=<RateV4Request USERID=""{0}""><Revision/><Package ID=""0""><Service>{1}</Service><ZipOrigination>{2}</ZipOrigination><ZipDestination>{3}</ZipDestination><Pounds>{4}</Pounds><Ounces>{5}</Ounces><Container>{6}</Container><Size>{8}</Size><Width>{9}</Width><Length>{10}</Length><Height>{11}</Height><Girth>{12}</Girth><Machinable>{7}</Machinable><ReturnLocations></ReturnLocations><ReturnServiceInfo></ReturnServiceInfo><ShipDate>{13}</ShipDate></Package></RateV4Request>"
End If
Tue 30 Jan 2018 by SAbow

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top