change IBLOCK_ID source to Bitrix's dbconn constants on various components
This commit is contained in:
parent
f21feb500c
commit
778d6f2fd7
@ -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())
|
||||
|
||||
@ -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']))
|
||||
|
||||
@ -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'] = "Да";
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
@ -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"]))
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user