Код |
---|
$arFields = array( "LID" => "s1", "PERSON_TYPE_ID" => 1, "PAYED" => "N", "CANCELED" => "N", "STATUS_ID" => "N", "PRICE" => 0.00, "CURRENCY" => "RUB", "USER_ID" => 1, //"PAY_SYSTEM_ID" => 3, //"PRICE_DELIVERY" => 11.37, //"DELIVERY_ID" => 2, "DISCOUNT_VALUE" => 0.00 //"TAX_VALUE" => 0.0, //"USER_DESCRIPTION" => "" ); if (CModule::IncludeModule("statistic")) $arFields["STAT_GID"] = CStatistic::GetEventParam(); $ORDER_ID = CSaleOrder::Add($arFields); $ORDER_ID = IntVal($ORDER_ID); |