User loginRecent blog posts
|
FedEx PM and RM Zipzode Shipping Calculation ErrorZnode does not calculate FedEx shipping for over-night FedEx deliveries where the shipping zipcode is in a FedEx PM or RM area: https://www.fedex.com/us/services/addendum/deliveryarea.html?link=4 Znode returns an error of: Service Type is missing or invalid
|
SearchQuick Links |
"Service Type is missing or invalid" when shipping FedEx
To reproduce this issue do the following:
The issue here is that FedEx does not provide FedEx Standard Overnight to this zip code. In other words, the "service is invalid". The error message that is displayed in the cart comes directly from the FedEx servers, and to say the least could be a little more user friendly.
The easy fix for this is to intercept the error message that FedEx is sending back and replace it with our own. There are several places where you can do this but one easy place is in Libraries\ZNode.Libraries.Integrator\FedEx.cs.
Update the ErrorDescription property as follows.
public string ErrorDescription
{
get
{
// FedEx returns "Service type is missing or invalid". Replace this with a user friendly message.
if (_errorCode.Equals("540"))
{
_errorDescription = "FedEx does not support the selected shipping option to this zip code. Please select another shipping option.";
}
return _errorDescription;
}
set { _errorDescription = value; }
}
Znode Administrator
email: support@znode.com
url: www.znode.com