bitziz Posted February 21, 2004 Posted February 21, 2004 If you are shipping to canada, remember that OSC denotes Quebec as QC but fedex's server registers Quebec as PQ so if you are shipping to Quebec, you will get a recipient postal code and province/state do not match. You will have to change the state code under configuration --> localization --> Zones
bitziz Posted February 21, 2004 Author Posted February 21, 2004 But if you use UPS or something, it will register Quebec as QC and PQ. Here is a fix: in includes/modules/shipping/fedex1.php around line 344 you will find the line: $data .= '16,"' . tep_get_zone_code($order->delivery['country']['id'], $order->delivery['zone_id'], '') . '"'; // Recipient state replace that with : $state = tep_get_zone_code($order->delivery['country']['id'], $order->delivery['zone_id'], ''); if ( $state = "QC") { $data .= '16,"PQ"'; } else { $data .= '16,"' . $state . '"'; // Recipient state } that should do it
sfatula Posted March 1, 2004 Posted March 1, 2004 Yep, this will work. This is the reason Fedex is removing the state code again fromn being a required field, like it used to be before some time in January. You just found ONE country and state, there are tons of them! So, once they fix their code to not make it required any more, the module will remove the state again and we will all be happier! Steve Steve
Sysop Posted March 4, 2004 Posted March 4, 2004 But if you use UPS or something, it will register Quebec as QC and PQ. Here is a fix: in includes/modules/shipping/fedex1.php around line 344 you will find the line: $data .= '16,"' . tep_get_zone_code($order->delivery['country']['id'], $order->delivery['zone_id'], '') . '"'; // Recipient state replace that with : $state = tep_get_zone_code($order->delivery['country']['id'], $order->delivery['zone_id'], ''); if ( $state = "QC") { $data .= '16,"PQ"'; } else { $data .= '16,"' . $state . '"'; // Recipient state } that should do it When I did the find & replace as listed above, I got the following error(s).... Something about postal code/province doesn't match. I was using a Torrance, CA 90501 Zip code. Yes, I went into the zones and changed Quebec as well!
sfatula Posted March 4, 2004 Posted March 4, 2004 Well, one obvious problem is the line SHOULD say: if ($state == "QC") { Steve Steve
Sysop Posted March 4, 2004 Posted March 4, 2004 Well, one obvious problem is the line SHOULD say: if ($state == "QC") { Steve I will give that a shot.. Thank you...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.