В файле component.php вносим следующие изменения:
Code
Copy code
Code copied!
//После кода: $arShowProp = CMaxCache::CIBlockPropertyEnum_GetList(Array("sort" => "asc", "id" => "desc", "CACHE" => array("TAG" => CMaxCache::GetPropertyCacheTag($arParams["TABS_CODE"]))), Array("ACTIVE" => "Y", "IBLOCK_ID" => $arParams["IBLOCK_ID"], "CODE" => $arParams["TABS_CODE"])); //Добавляем код //Строка 109: $rsProp = CIBlockPropertyEnum::GetList( Array("sort" => "asc", "id" => "desc"), Array("ACTIVE" => "Y", "IBLOCK_ID" => $arParams["IBLOCK_ID"], "CODE" => $arParams["TABS_CODE"]) ); $arShowPropOrig = []; while($arProp=$rsProp->Fetch()){ if($arProp['VALUE']) $arShowPropOrig[$arProp["EXTERNAL_ID"]] = $arProp["VALUE"]; } //Также меняем код //Строка 204: foreach($arShowProp as $key => $prop) { $arItems = array(); //edit_by_Fantych: 21.08.2023 $arFilterProp = array("PROPERTY_".$arParams["TABS_CODE"]."_VALUE" => array($arShowPropOrig[$key])); $arItems = CMaxCache::CIBLockElement_GetList(array('CACHE' => array("MULTI" => "N", "TAG" => CMaxCache::GetIBlockCacheTag($arParams["IBLOCK_ID"]))), array_merge($arFilter, $arrFilter, $arFilterStores, $arFilterProp), false, array("nTopCount" => 1), array("ID")); if($arItems) { $arTabs[$key] = array( "CODE" => $key, "TITLE" => $prop, "FILTER" => array_merge($arFilter, $arrFilter, $arFilterStores, $arFilterProp) ); $arResult["SHOW_SLIDER_PROP"] = true; } }
Количество показов: 519
Дата изменения: 21.08.2023 06:53:49