Hello,
"The FedEx request failed with the message : Customer not eligible for service." That is from turning on FedEx Smart Post.
That error message is only telling your that your FedEx account is not enabled for SmartPost services. To get your account enabled for SmartPost, contact your FedEx Account Manager.
People need to know that this plugin is not returning valid shipping results at all.
Here is a step by step of how shipping plugin works, when you'll reach the "Shipping" step of your checkout workflow :
- The plugin will gather information regarding your order like the shipping address / products weight & dimensions
Before the "Shipping" step of your checkout workflow is displayed :
- The plugin will send the gathered order information to the FedEx platform
- The FedEx platform will then answer by sending you the available services and rates.
- The plugin will then
display each rates returned by FedEx through the "Shipping" step of your checkout workflow
The Hikashop FedEx shipping plugin is only displaying the rates and information returned by the FedEx platform based on the order information that we sent them.
Also, using that kind of code through the "fedex.php" file of the plugin :
if(isset($null->shipping_address->address_street) && preg_match("/PO/i", $null->shipping_address->address_street)){
$messages['po_address'] = "Your error message";
continue;
}
just after the line :
$receivedMethods=$this->_getRates($rate, $order, $heavyProduct, $null);
Will probably do the job, that code will enable you to display an error message and don't display FedEx shipping services if your have "PO" on your customer shipping address.