USPS LArge dimenson error
I selected Large for the package size on Priority using the eCart USPS behavior ... I received the dimension error below:
-2147219426DomesticRatesV4;clsRateV4.ValidateDimension;RateEngineV4.ProcessRequestDimensions are missing for package; unable to calculate postage. Additional Info: All dimensions must be greater than 0.1000440
I added the 3 lines directly to the USPS page code for PackageLength - Width & Height but the error still is returned
page code:
if ($_SERVER["REQUEST_METHOD"] == "POST") {
//WA eCart (Copyright 2007, WebAssist)
//WA eCart USPS Shipping - USPS
$Shipping_SuccessURL = "";
$Shipping_FailureURL = "shipping_failure2.php";
$Shipping_Packaging = 1;
$Shipping_PackageArray = array();
$Shipping_PackageIndex = 0;
$Shipping_Counter = 0;
$Shipping_Parameters = array();
$Shipping_Parameters["UserID"] = "349AMERI5923";
$Shipping_Parameters["USPSServer"] = "http://production.shippingapis.com/ShippingAPI.dll";
$Shipping_Parameters["CarrierCode"] = "PRIORITY";
$Shipping_Parameters["DefaultIntl"] = "Express Mail International";
$Shipping_Parameters["ShipperZip"] = "07930";
$Shipping_Parameters["ShiptoZip"] = "".$_SESSION['eCartCheckoutForm_shipping_postcode'] ."";
$Shipping_Parameters["ShiptoCountry"] = "".$_SESSION['eCartCheckoutForm_shipping_country'] ."";
while (($Shipping_Packaging == 1 && !$eCart3->EOF()) || ($Shipping_Packaging == 0 && $Shipping_Counter == 0)) {
if (WA_eCart_USPS_IsTrueValue("true")) {
$Shipping_PackageArray[] = array();
$Shipping_PackageIndex = sizeof($Shipping_PackageArray)-1;
$Shipping_PackageArray[$Shipping_PackageIndex]["eCart_Quantity"] = (($Shipping_Packaging == 1)?$eCart3->DisplayInfo("Quantity"):1);
$Shipping_PackageArray[$Shipping_PackageIndex]["IsPackage"] = "true";
$Shipping_PackageArray[$Shipping_PackageIndex]["Quantity"] = "1";
$Shipping_PackageArray[$Shipping_PackageIndex]["WeightUnits"] = "lb";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageWeight"] = "".WA_eCart_FormatNumber($eCart3->DisplayInfo('Weight'), true, 1) ."";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageType"] = "RECTANGULAR";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageSize"] = "LARGE";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageLength"] = "".$eCart3->DisplayInfo("Length") ."";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageWidth"] = "".$eCart3->DisplayInfo("Width") ."";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageHeight"] = "".$eCart3->DisplayInfo("Height") ."";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageMachinable"] = "true";
$Shipping_PackageArray[$Shipping_PackageIndex]["IPackageType"] = "Package";