Answer the question
In order to leave comments, you need to log in
How to filter products by property?
There are infoblock products, they have power properties, for example 20, 30, 50, 100
. 30 and 100. How to enter data into the request?
I get data via GetList
$arSelect = array(
"ID",
"IBLOCK_ID",
"NAME",
"DETAIL_PICTURE",
"DATE_ACTIVE_FROM",
"PROPERTY_PERFOMANCE",
"PROPERTY_WEIGHT_NETTO",
"PROPERTY_LAMP_TYPE",
"CATALOG_GROUP_3"
);
$arFilter = array(
"IBLOCK_ID" => 37,
"ACTIVE_DATE" => "Y",
"ACTIVE" => "Y",
">=PROPERTY_PERFOMANCE" => array($request['power'])
);
$res = CIBlockElement::GetList(array(), $arFilter, false, array("nPageSize" => 50), $arSelect);
">=PROPERTY_PERFOMANCE" => array($request['power'])
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question