P
P
po4emu4ka20202020-09-08 19:57:30
1C-Bitrix
po4emu4ka2020, 2020-09-08 19:57:30

How to get the Bitrix ID of goods from the smart filter after the filter?

Hello!
Can you please tell me how to get the IDs of all the products that it found after the applied filtering from the Bitrix catalog.smart.filter component?

I need to pass this list of IDs when calling another component to the filter.

I want a rational and beautiful solution, because I'm almost sure that it exists.
After all, don't process the GET request again.

Help, please, not to slide into bydlokod.
Thanks in advance to everyone for any help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
scottparker, 2020-09-08
@po4emu4ka2020

In the filter connection parameters, pass the FILTER_NAME parameter

<?$result = $APPLICATION->IncludeComponent(
  "bitrix:catalog.smart.filter",
  "",
  Array(
                //другие параметры
    "FILTER_NAME" => "arrFilter",
  )

and see which array arrFilter (global) will be formed;
you can pass it to another component in the same way

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question