P
P
Pavel Sidorov2020-04-26 00:05:42
1C-Bitrix
Pavel Sidorov, 2020-04-26 00:05:42

How to set filtering by property, number type?

Good day.

Guys, there is an information block with goods. Standard license.
The infoblock contains the "price" and "new price" properties. If "new price" is specified, then "price" is crossed out and imitation of discounts is obtained.

How to filter by two properties at the same time. I filtered by "new price", but it is clear that if the product does not have a "new price", then the filtering will not work correctly.

I think that it is necessary to somehow pass the values ​​​​to some one specific property and then filter by it. Tell me how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
smilingcheater, 2020-04-27
@smilingcheater

Use complex filtering logic
https://dev.1c-bitrix.ru/api_help/iblock/classes/c...
from the heading "Filter with complex logic"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question