//************************************************ foreach ($items as $val) { $calcCodes = array('C', 'CI'); if (in_array($val["CalcMethod"], $calcCodes)) { $shipAPI->addItemCalc($val["refCode"], $val["quantity"], $val["weight"], $val['weightUOM'], $val["length"], $val["width"], $val["height"], $val["dimUOM"], $val["value"], $val["packMethod"], $val["lotSize"], $val["CalcMethod"]); if (isset($val["originCode"])) { $shipAPI->addItemOriginCode($val["originCode"]); } if (isset($val["odServices"])) { $shipAPI->addItemOnDemandServices($val["odServices"]); } if (isset($val["suppHandlingCode"])) { $shipAPI->addItemSuppHandlingCode($val["suppHandlingCode"]); } if (isset($val["suppHandlingFee"])) { $shipAPI->addItemHandlingFee($val["suppHandlingFee"]); } if (isset($val["specCarrierSvcs"])) { $shipAPI->addItemSpecialCarrierServices($val["specCarrierSvcs"]); } } elseif ($val["CalcMethod"] == "F") { $shipAPI->addItemFixed($val["refCode"], $val["quantity"], $val["FeeType"], $val["fixedAmt_1"], $val["fixedAmt_2"], $val["fixedFeeCode"]); } elseif ($val["CalcMethod"] == "N") { $shipAPI->addItemFree($val["refCode"], $val["quantity"]); } } //************************************************ // Call the AuctionInc SS API // Utilizes account configured info for default // origin address and enabled carrier services //************************************************
//************************************************************ foreach ($items as $val) { $calcCodes = array('C', 'CI'); if (in_array($val["CalcMethod"], $calcCodes)) { $shipAPI->addItemCalc($val["refCode"], $val["quantity"], $val["weight"], $val['weightUOM'], $val["length"], $val["width"], $val["height"], $val["dimUOM"], $val["value"], $val["packMethod"], $val["lotSize"], $val["CalcMethod"]); if (isset($val["originCode"])) { $shipAPI->addItemOriginCode($val["originCode"]); } if (isset($val["odServices"])) { $shipAPI->addItemOnDemandServices($val["odServices"]); } if (isset($val["specCarrierSvcs"])) { $shipAPI->addItemSpecialCarrierServices($val["specCarrierSvcs"]); } if (isset($val["handling"])) { $shipAPI->addItemHandlingFee($val["handling"]); } } elseif ($val["CalcMethod"] == "F") { $shipAPI->addItemFixed($val["refCode"], $val["quantity"], $val["FeeType"], $val["fixedAmt_1"], $val["fixedAmt_2"], $val["fixedFeeCode"]); if (isset($val["originCode"])) { $shipAPI->addItemOriginCode($val["originCode"]); } } elseif ($val["CalcMethod"] == "N") { $shipAPI->addItemFree($val["refCode"], $val["quantity"]); } } //************************************************************ // Call the AuctionInc XS API // Utilizes xml data for all rating information // and supports infinite sellers //************************************************************