A
A
Alexander2020-08-20 10:15:12
1C-Bitrix
Alexander, 2020-08-20 10:15:12

How to display all products by a certain attribute in Bitrix in a section?

Hello.
Some of the products in the catalog have the property "Our offers".
5f3e227447b43370777686.jpeg
I created a section to display in it all the products that have "Sale" selected and I can't figure out how to do it. It turns out only to add the entire catalog and not a list of products, but only a single top category.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
constlapkin, 2020-08-20
@constlapkin

If you placed the component in a separate section bitrix:catalog.section, then you can set a filter and specify the name of the filter variable in the component (in the example ). It is written in courses and forums how to set filters: https://dev.1c-bitrix.ru/learning/course/index.php... You can also implement it for a complex component. If the section is created in the Catalog infoblock, then there is another solution - the "Group" tab, which allows you to link a product to several sections at once.
"FILTER_NAME" => "arFilter"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question