I
I
Ivan Ivanov2018-03-13 12:26:10
1C-Bitrix
Ivan Ivanov, 2018-03-13 12:26:10

How to properly set up a smart filter in bitrix to filter by a custom property?

Hello dear friends, the essence of the problem is as follows. The smart filter works and works well, but there is one problem that I can’t solve in any way. The point is the following.
1) There is a custom property "Sale", it has one value, Yes.
2) The display of this property in the smart filter is set to checkbox.
3) When we go to a section where there is at least one product with the "Sale" property set to Yes, the filter works correctly.
3) When we enter a section where there is not a single product with the "Sale" property set, the following happens:
When the "Sale" property is selected, the filter displays "88 products found" (that is, all products of the current section. Although, logically,
Please advise how to fix this error. Thanks...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2018-03-14
@ZZiliST

The ID of the current section is most likely not passed to the smart filter, so it searches the entire directory with Ajax and displays the result.
See the component settings, there should be a field for section substitution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question