I
I
Igor2018-04-30 23:11:54
1C-Bitrix
Igor, 2018-04-30 23:11:54

How to set arbitrary values ​​​​in the 1s-Bitrix smart filter?

The task is to supplement the smart catalog filter with a new "busy" filter. I have such a field "employment" in which a string of different types is stored: "Free", "Busy until 05/31/2018", "Booked", etc.
I need to display only two values ​​in the filter: "Free" and "Employed". Accordingly, those that have the "Free" values ​​refer to the "Free" filter value, and all the rest - to the "Busy" filter value.
I've added an "Employment" field to the smart filter, but the dropdown is empty. How can I supplement it with two options and write a selection condition?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ainur Valiev, 2018-05-01
@vaajnur

Shop - Main catalog of goods - Catalog settings - Properties of elements
there you mark your fields.
You write the selection condition directly in the template. You catch saints, you hide Booked. When you click on the field Busy Booked you make cheked.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question