diff --git a/local/components/evolution/about.rules/component.php b/local/components/evolution/about.rules/component.php index 7a479f0..cce5bcf 100644 --- a/local/components/evolution/about.rules/component.php +++ b/local/components/evolution/about.rules/component.php @@ -21,7 +21,7 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) { $arResult = ['DOCUMENTS' => []]; - $filter = ["ACTIVE" => "Y", "IBLOCK_ID" => 18]; + $filter = ["ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_ACCOUNT_RULES]; $rules_res = CIBlockElement::GetList(["ACTIVE_FROM" => "DESC", "SORT" => "DESC"], $filter, false, []); while ($rules_ob_element = $rules_res->GetNextElement()) diff --git a/local/components/evolution/catalog.other.positions/component.php b/local/components/evolution/catalog.other.positions/component.php index 8dd3af7..89d93cf 100644 --- a/local/components/evolution/catalog.other.positions/component.php +++ b/local/components/evolution/catalog.other.positions/component.php @@ -29,7 +29,7 @@ if(CModule::IncludeModule('iblock')) $query_arr = []; $sort = Array( "RAND" => "ASC" ); - $filter = Array( "ACTIVE" => "Y", "IBLOCK_ID" => 1, "!ID" => $arParams['EXCEPT'] ); + $filter = Array( "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_CATALOG_CARS_NEW, "!ID" => $arParams['EXCEPT'] ); $options = Array( "nPageSize" => 6 ); if(!empty($arParams['BRAND_ID'])) diff --git a/local/components/evolution/catalog.special.offers/component.php b/local/components/evolution/catalog.special.offers/component.php index 68e23ae..5c3bc55 100644 --- a/local/components/evolution/catalog.special.offers/component.php +++ b/local/components/evolution/catalog.special.offers/component.php @@ -30,7 +30,7 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) $query_arr = []; $sort = [ "RAND" => "ASC" ]; - $filter = Array("ACTIVE" => "Y", "IBLOCK_ID" => 1); + $filter = Array("ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_CATALOG_CARS_NEW); $options = Array("nPageSize" => $arParams['COUNT']); $filter['PROPERTY_SPECIAL_OFFER_VALUE'] = "Да"; diff --git a/local/components/evolution/programs.offers.banners/component.php b/local/components/evolution/programs.offers.banners/component.php index eed2f70..0531ab6 100644 --- a/local/components/evolution/programs.offers.banners/component.php +++ b/local/components/evolution/programs.offers.banners/component.php @@ -21,7 +21,7 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) { $arResult = array(); $sort = Array("ID" => $arParams['BANNERS']); - $filter = Array("IBLOCK_ID" => 13, "ID" => $arParams['BANNERS']); + $filter = Array("IBLOCK_ID" => IBLOCK_ID_SPECIAL_OFFERS_BANNERS, "ID" => $arParams['BANNERS']); if(!isset($_GET['advertise'])) { $filter["ACTIVE"] = "Y"; } $options = Array("nPageSize" => 1000); diff --git a/local/components/evolution/services.entry/component.php b/local/components/evolution/services.entry/component.php index 226bd9d..68bb668 100644 --- a/local/components/evolution/services.entry/component.php +++ b/local/components/evolution/services.entry/component.php @@ -21,7 +21,7 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) { $arResult = array(); $sort = Array("NAME" => "ASC"); - $filter = Array("ACTIVE" => "Y", "IBLOCK_ID" => 12, "CODE" => $arParams['CODE']); + $filter = Array("ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_SERVICES, "CODE" => $arParams['CODE']); $options = Array("nPageSize" => 1000); if(isset($arParams["sort"])) diff --git a/local/components/evolution/services.list/component.php b/local/components/evolution/services.list/component.php index af3e895..73c3c89 100644 --- a/local/components/evolution/services.list/component.php +++ b/local/components/evolution/services.list/component.php @@ -21,7 +21,7 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true)))) { $arResult = []; $sort = Array("SORT" => "ASC", "NAME" => "ASC"); - $filter = Array("ACTIVE" => "Y", "IBLOCK_ID" => 12); + $filter = Array("ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_SERVICES); $options = Array("nPageSize" => 1000); $res = CIBlockElement::GetList($sort, $filter, false, $options);