\Bitrix\Main\Loader::includeModule("iblock");
$donateList = array(2698, 2699, 2700, 2705, 37155, 41371);
$IBLOCK_ID = 7;
$arSelect = Array("IBLOCK_SECTION_ID");
$arFilter = Array(
"IBLOCK_ID" => $IBLOCK_ID,
"ACTIVE" => "Y",
"PROPERTY_TYPE" => $donateList
);
$res = CIBlockElement::GetList(array("IBLOCK_SECTION_ID" => "ASC"), $arFilter, ["IBLOCK_SECTION_ID"], false, $arSelect);
$blackListSections = [];
while ($arItem = $res->Fetch()) {
$blackListSections[] = $arItem["IBLOCK_SECTION_ID"];
}
$users_group = \CIBlockSection::GetList(
array(),
array(
"IBLOCK_ID" => $IBLOCK_ID,
"!ID" => $blackListSections
),
false,
array("ID")
);
//и т.д.
"SHOW_404" => "Y",
"SEF_MODE" => "Y",
"SEF_FOLDER" => "/",
"SEF_URL_TEMPLATES" => array(
"sections" => "",
"section" => "#SECTION_CODE_PATH#/",
"element" => "#SECTION_CODE_PATH#/#ELEMENT_CODE#/",
"compare" => "compare/",
"smart_filter" => "#SECTION_CODE_PATH#/filter/#SMART_FILTER_PATH#/apply/",
)
array (
'CONDITION' => '#^/#',
'RULE' => '',
'ID' => 'bitrix:catalog',
'PATH' => '/strany/index.php',
'SORT' => 100,
),
CModule::IncludeModule("catalog");
$products = [537, 547];
$amount = \Bitrix\Catalog\StoreProductTable::getList([
'filter' => [
'PRODUCT_ID' => $products
]
])->fetchAll();
print_r($amount);
$el = new CIBlockElement;
$PROP = array();
$PROP["COLOR"] = "Белый";
$PROP["COUNT"] = 38;
$arLoadProductArray = Array(
"PROPERTY_VALUES"=> $PROP,
"NAME" => "Элемент",
);
$PRODUCT_ID = 2;
$res = $el->Update($PRODUCT_ID, $arLoadProductArray);
if ($ex = $APPLICATION->GetException()){
\Bitrix\Main\Diag\Debug::dumpToFile($ex->GetString());
}
$product = array(
'PRODUCT_ID' => $productId,
'QUANTITY' => $quantity
);
/*@var $basketResult Bitrix\Main\Result*/
$basketResult = Catalog\Product\Basket::addProduct($product);
if (!$basketResult->isSuccess()) {
\Bitrix\Main\Diag\Debug::dumpToFile(implode('; ', $basketResult->getErrorMessages()));
}
//.......
var map = window.GLOBAL_arMapObjects['<?echo $arParams['MAP_ID']?>'] = new ymaps.Map();
//.......
window.GLOBAL_arMapObjects["test"].setCenter([40, 50], 3, { checkZoomRange: true});