Hi,
As you might see, the "Fedex" plugin has not been developed by the HikaShop team but by : "Rich S Wyatt - D3 Web Creations".
The author gave us the plugin and the right to include it into HikaShop.
Because the plugin had some troubles, "Obsidev" made some modifications in order to fix the different issues before the first release.
Now, the HikaShop team is maintaining the plugin for the compatibility with HikaShop.
If Fedex is asking for codes with 2 characters, you have to give him codes with 2 characters.
You will see that in the HikaShop database, the states have mostly codes in the "zone_code_3" even if the code is in 2 characters. Most of states does not have any value in the "zone_code_2" ; so it's difficult for the plugin to work with that.
You can edit the plugin and replace
$state_zone=@$rate->shipping_params->sender_state;
$query="SELECT zone_id, zone_code_3 FROM ".hikashop_table('zone')." WHERE zone_namekey IN ('".$state_zone."')";
$db->setQuery($query);
$state = $db->loadObject();
$data['sender_state']=$state->zone_code_3;
By
$state_zone=@$rate->shipping_params->sender_state;
$query="SELECT zone_id, zone_code_2, zone_code_3 FROM ".hikashop_table('zone')." WHERE zone_namekey IN ('".$state_zone."')";
$db->setQuery($query);
$state = $db->loadObject();
$data['sender_state'] = empty($state->zone_code_2) ? $state->zone_code_3 : $state->zone_code_2;
in order to load the "zone_code_2" when possible but if in the database there is no 2 characters code at all, HikaShop and the fedex plugins won't be able to create them.
At this moment you will need to fill your zone database with the correct codes.
www.hikashop.com/support/documentation/i...ashop-zone-form.html
Regards,