I
I
ItsInTheGameRU2021-04-17 00:51:57
1C-Bitrix
ItsInTheGameRU, 2021-04-17 00:51:57

How to enable the display of inactive elements in Bitrix?

Products are displayed using bitrix:catalog.section with a smart filter bitrix:catalog.smart.filter. But only active elements are displayed, how to display inactive elements?

Here a similar question was asked, but the author did not receive an answer https://dev.1c-bitrix.ru/support/forum/forum6/topi...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
ZardoZAntony, 2021-04-17
@ZardoZAntony


\bitrix\components\bitrix\catalog.smart.filter\component.php is hardcoded in this file

$arElementFilter = array(
        "IBLOCK_ID" => $this->IBLOCK_ID,
        "SUBSECTION" => $this->SECTION_ID,
        "SECTION_SCOPE" => "IBLOCK",
        "ACTIVE_DATE" => "Y",
        "ACTIVE" => "Y",
        "CHECK_PERMISSIONS" => "Y",
      );

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question