When doing international orders most province regions are 3 letter abbreviations, however, fedex is barfing on that saying they have to be 2 letters.
I read on one form for a different cart that when doing international orders the state/region should not be sent over.
Can anyone shed some light on this.
I tried to register an account with fedex to look at their developer resources but their registration server was down.
Has anyone else had this issue and found a fix.
Are there any other places I can find a text for the WSDL package.
Thanks
Scotty
OK for those who may have this issue down the road, I found a solutions.
A single line of code needs to be corrected.
catalog/model/shipping/fedex_wsdl.php
Original Code:
Simply change the second
to
So you get
This way you still get state/zone info logged but fedex will not barf on it.
A single line of code needs to be corrected.
catalog/model/shipping/fedex_wsdl.php
Original Code:
Code: Select all
// Destination Data
$fedex_wsdl->DestStreetLines1 = $address['address_1'];
$fedex_wsdl->DestStreetLines2 = $address['address_2'];
$fedex_wsdl->DestCity = $address['city'];
if ($address['iso_code_2'] == 'US' || $address['iso_code_2'] == 'CA') {
$fedex_wsdl->DestStateOrProvinceCode = $address['zone_code'];
} else {
$fedex_wsdl->DestStateOrProvinceCode = $address['zone_code'];
}
Code: Select all
$fedex_wsdl->DestStateOrProvinceCode = $address['zone_code'];
Code: Select all
$fedex_wsdl->DestStateOrProvinceCode = '';
Code: Select all
// Destination Data
$fedex_wsdl->DestStreetLines1 = $address['address_1'];
$fedex_wsdl->DestStreetLines2 = $address['address_2'];
$fedex_wsdl->DestCity = $address['city'];
if ($address['iso_code_2'] == 'US' || $address['iso_code_2'] == 'CA') {
$fedex_wsdl->DestStateOrProvinceCode = $address['zone_code'];
} else {
$fedex_wsdl->DestStateOrProvinceCode = '';
}
Who is online
Users browsing this forum: No registered users and 1 guest