Код |
---|
$brandRes = CIBlockElement::GetList( array(), array("IBLOCK_ID" => $brand) ); $brands = array(); while($brandOb = $brandRes -> GetNext()){ $res = CIBlockElement::GetList( array(), array( "IBLOCK_ID" => $catalog, "SECTION_ID" => $_GET["SECTION_ID"], "ACTIVE" => "Y", "PROPERTY_BRAND" => $brandOb["ID"] ), false, array("nTopCount" => 1) ); if($ob = $res->GetNext()) $brands[] = $brandOb["ID"]; } |
Код |
---|
$dbRes = CIBlockElement::GetList(array(), array("IBLOCK_CODE" => $arParams["CUR_IBLOCK_CODE"], "!PROPERTY_".$code => false), array("PROPERTY_".$code)); |
Код |
---|
Array ( [PROPERTY_BRAND_VALUE] => 133 [~PROPERTY_BRAND_VALUE] => 133 [CNT] => 3 [~CNT] => 3 ) |
Код |
---|
Array ( [PROPERTY_BRAND_VALUE] => 135 [~PROPERTY_BRAND_VALUE] => 135 [CNT] => 1 [~CNT] => 1 ) |
Код |
---|
Array ( [PROPERTY_BRAND_VALUE] => 138 [~PROPERTY_BRAND_VALUE] => 138 [CNT] => 1 [~CNT] => 1 ) |