Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

WARNING: To everyone who's using the fedex module


bitziz

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...