ECart Weight Unit Error
I am trying to process an order and get this message on Shipping Failure page
LBS3LBS is not a valid unit of measurement for weight for this shipment
Can you tell me what I have done incorrectly?
Thanks
I am trying to process an order and get this message on Shipping Failure page
LBS3LBS is not a valid unit of measurement for weight for this shipment
Can you tell me what I have done incorrectly?
Thanks
On the confirm page, double click the server behaviors fro the Shipping rate Lookup service of your shipping provider, the last step of the server behavior, one of the settings is for wight units, the error is saying that this is set to "LBS3LBS", it should be just "LBS"
Thank you, that worked.
I must have something else wrong. I have a 3 lb item for ups and the shipping is $55.31. Do you know where I would look for these errors.
Thanks,
Janice
I have exactly the same issue after running the eCart checkout wizard, the relevant block of code looks like this:
if (WA_eCart_UPS_IsTrueValue("true")) {
$Shipping_PackageArray[] = array();
$Shipping_PackageIndex = sizeof($Shipping_PackageArray)-1;
$Shipping_PackageArray[$Shipping_PackageIndex]["eCart_Quantity"] = (($Shipping_Packaging == 1)?$eCart1->DisplayInfo("Quantity"):1);
$Shipping_PackageArray[$Shipping_PackageIndex]["IsPackage"] = "true";
$Shipping_PackageArray[$Shipping_PackageIndex]["Quantity"] = "".WA_eCart_FormatNumber($eCart1->DisplayInfo('Quantity'), true, 1) ."";
$Shipping_PackageArray[$Shipping_PackageIndex]["WeightUnits"] = "".strtoupper($eCart1->WeightUnits)."S" ."";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageWeight"] = "".WA_eCart_FormatNumber($eCart1->TotalColumn('TotalWeight'), true, 1) ."";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageType"] = "02";
$Shipping_PackageArray[$Shipping_PackageIndex]["SizeUnits"] = "IN";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageLength"] = "0";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageWidth"] = "0";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageHeight"] = "0";
//Special Services
}
and on checkout I am always sent to the shipping failure page with the message: S is not a valid unit of measurement for weight for this shipment
I cannot find any reference to WeightUnits as in $eCart1->WeightUnits in the ecart files so how should this info be pulled in or is it a bug ?
It is a bug in ecart that it is using the wrong code.
the correct code for this line:
$Shipping_PackageArray[$Shipping_PackageIndex]["WeightUnits"] = "".strtoupper($eCart1->WeightUnits)."S" ."";
is:
$Shipping_PackageArray[$Shipping_PackageIndex]["WeightUnits"] = "".strtoupper($eCart1->WeightSuffix)."S" ."";
Thanks Jason, I assume that this will be corrected in the next point release ?
Yes, it has been logged as a bug so it can be addressed for the next update.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.