A
A
Alexander2017-02-25 18:30:17
PHP
Alexander, 2017-02-25 18:30:17

How to display filter properties in Bitrix?

Tell me, is it possible somehow in Bitrix to display the properties of the filter by which the filtering is performed?
i.e., if in a normal language - display the line to the user: "You selected in the filter: Color - Green"
where is the resulting array that stores this data?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2017-02-25
@IIvanich

Add catalog.smart.filter to the component template

echo "<pre>";
print_r($arResult);
echo "</pre>";

And everything will become clearer. There will be an array of properties with their values. For the selected property values ​​of the "List" type, there will be something like selected => Y or checked => Y

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question