P
P
Pavel Chirkov2018-10-11 17:31:54
1C-Bitrix
Pavel Chirkov, 2018-10-11 17:31:54

Bitrix how to display all products from the catalog?

I do a conclusion of all goods from the catalog.
I do it like this:

<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();

/** @var array $arParams */
/** @var array $arResult */
/** @global CMain $APPLICATION */
/** @global CUser $USER */
/** @global CDatabase $DB */
/** @var CBitrixComponentTemplate $this */
/** @var string $templateName */
/** @var string $templateFile */
/** @var string $templateFolder */
/** @var string $componentPath */
/** @var CBitrixComponent $component */

$this->setFrameMode(true);

  $APPLICATION->IncludeComponent(
    "bitrix:catalog.section.list",
    "sections_list",
    array(
      "IBLOCK_ID" => 13,
            "SECTION_ID" => 0,
            "SHOW_ALL_WO_SECTION" => "Y", 
    ),
    $component
  );
  unset($basketAction);

But all products are not displayed, only the top folder is displayed.
result_modifier.php - commented The

question was helped to solve, thank you very much, now there is another question, how to make a filter here?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Bankir77, 2018-10-11
@pawelch7

bitrix:catalog.section.list - component for displaying catalog sections
To display products, you need to use the component - bitrix:catalog.section
https://dev.1c-bitrix.ru/user_help/components/cont...

A
Alexander Filippenko, 2018-10-11
@alexfilus

you probably wanted to say all sections? Because catalog.section.list displays them, not products.
Bitrix:catalog.section is used to display products

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question