K
K
Kirill Gorelov2020-09-17 22:18:07
1C-Bitrix
Kirill Gorelov, 2020-09-17 22:18:07

Bitrix, display product properties?

The question is how to make a filter from certain property values?

$db_enum_list = CIBlockProperty::GetPropertyEnum('SOSTAV', Array("SORT" => "asc"), Array("IBLOCK_ID" => 8));
//code


How to display the properties of products that are in a specific category. The code above displays the properties of the entire infoblock.
I already know that it was necessary to bind the properties to the section, but now redoing is not an option ....

Is there any way to do my task, except to get all the products in a certain category and take the necessary properties from there?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
scottparker, 2020-09-18
@Kirill-Gorelov

GetPropertyEnum returns options for the PROP_NAME property value of the list type,
you need to use CIBlockElement::GetPropertyValuesArray and specify the category you need in the filter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question