$arFields = array(
"PRODUCT_ID" => $arParams['PRODUCT_ID'].PREDSTAV_ID,
"PRODUCT_PRICE_ID" => PREDSTAV_ID,
"PRICE" => $ar_res["PRICE"],
"CURRENCY" => $ar_res["CURRENCY"],
"QUANTITY" => 1,
"LID" => LANG,
"DELAY" => "N",
"CAN_BUY" => "Y",
"NAME" => $tovar["NAME"]." (".PREDSTAV_NAME.")",
"NOTES" => $arParams['PRODUCT_ID'],
);
$arProps = array();
$arProps[] = array(
"NAME" => "Представитель",
"CODE" => "PREDSTAVIT",
"VALUE" => (PREDSTAV_NAME != "")?PREDSTAV_NAME:"Москва",
);
$arFields["PROPS"] = $arProps;
CSaleBasket::Add($arFields);
|