Merge branch 'master' of https://github.com/merelendor/evoleasing-site
This commit is contained in:
commit
b8fc863119
@ -26,7 +26,7 @@ while($ob = $res->GetNextElement())
|
||||
<company-id>'.$arFields["PROPERTY_YAID_VALUE"].'</company-id>
|
||||
<actualization-date>'.$today.'</actualization-date>
|
||||
<name lang="ru">Эволюция Автолизинга</name>
|
||||
<shortname lang="ru">ЛК Эволюция</shortname>
|
||||
<shortname lang="ru">Эволюция</shortname>
|
||||
<name lang="en">Evoleasing</name>
|
||||
<country lang="ru">Россия</country>
|
||||
<address lang="ru">'.$arFields["PROPERTY_YAADRESS1_VALUE"].'</address>
|
||||
|
||||
@ -33,7 +33,7 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
|
||||
{
|
||||
$res_filter = CIBlockElement::GetList(
|
||||
[ "SORT" => "ASC" ],
|
||||
[ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_PROGRAMS_AGGREGATION_RULES_SPECIAL, "PROPERTY_VEHICLE_TYPE" => $arParams['TYPE'], "!PROPERTY_VEHICLE_BRAND" => false, ],
|
||||
[ "ACTIVE" => "Y", "IBLOCK_ID" => $arParams['RULES_IBLOCK_ID'], "PROPERTY_VEHICLE_TYPE" => $arParams['TYPE'], "!PROPERTY_VEHICLE_BRAND" => false, ],
|
||||
false, false, ['ID', 'NAME', 'PROPERTY_VEHICLE_BRAND']
|
||||
);
|
||||
while ($element_filter = $res_filter->GetNextElement())
|
||||
@ -48,17 +48,6 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
|
||||
$filter['ID'] = $brands_ids;
|
||||
}
|
||||
|
||||
/* $sec_res = CIBlockSection::GetList($sort, $filter, false, [], false);
|
||||
while ($section = $sec_res->GetNext())
|
||||
{
|
||||
if(!empty($section['PICTURE']))
|
||||
{
|
||||
}
|
||||
|
||||
$section['ITEMS'] = [];
|
||||
$filter = array_merge($filter, [ "SECTION_ID" => $section['ID'] ]);
|
||||
*/
|
||||
|
||||
$res = CIBlockElement::GetList($sort, $filter, false, $options);
|
||||
while ($element = $res->GetNextElement())
|
||||
{
|
||||
@ -67,12 +56,6 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
|
||||
$arResult['ITEMS'][] = $ar_res;
|
||||
}
|
||||
|
||||
//if(count($section['ITEMS']) > 0)
|
||||
//{
|
||||
// $arResult['SECTIONS'][] = $section;
|
||||
//}
|
||||
// }
|
||||
|
||||
$this->IncludeComponentTemplate();
|
||||
}
|
||||
}
|
||||
@ -133,10 +133,6 @@ $this->setFrameMode(true);
|
||||
/*
|
||||
<section data-page="aggregation">
|
||||
<?
|
||||
|
||||
// print "<pre>"; print_r($arResult); print "</pre>";
|
||||
// die();
|
||||
|
||||
$APPLICATION->IncludeComponent(
|
||||
"evolution:programs.aggregations.offers.list",
|
||||
"",
|
||||
@ -360,6 +356,7 @@ elseif(isset($arResult['GROUP']))
|
||||
"",
|
||||
[
|
||||
"IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION_BRANDS'],
|
||||
"RULES_IBLOCK_ID" => $arParams['IBLOCK_ID_RULES'],
|
||||
"TYPE" => $arResult['TYPE'],
|
||||
"TYPE_SLUG" => $arResult['TYPE_SLUG'],
|
||||
"TYPE_GENITIVE" => $arResult['TYPE_GENITIVE'],
|
||||
@ -378,6 +375,7 @@ elseif(isset($arResult['GROUP']))
|
||||
"",
|
||||
[
|
||||
"IBLOCK_ID" => $arParams['IBLOCK_ID_PROGRAMS_AGGREGATION_BRANDS'],
|
||||
"RULES_IBLOCK_ID" => $arParams['IBLOCK_ID_RULES'],
|
||||
"TYPE" => $arResult['TYPE'],
|
||||
"TYPE_SLUG" => $arResult['TYPE_SLUG'],
|
||||
"TYPE_GENITIVE" => $arResult['TYPE_GENITIVE'],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user