Answer the question
In order to leave comments, you need to log in
Displaying the number of products in the Bitrix section?
In the settings of the complex infoblock (/catalog/index.php) is
<?php
$APPLICATION->IncludeComponent(
"bitrix:catalog",
"название_шаблона",
array(
...,
"PAGE_ELEMENT_COUNT" => "32",
...
),
false
);
?>
<?php
$page_element_count = isset($_GET['count']) ? $_GET['count'] : $arParams["PAGE_ELEMENT_COUNT"];
$APPLICATION->IncludeComponent(
"bitrix:catalog.section",
"",
array(
...,
"PAGE_ELEMENT_COUNT" => $page_element_count,
...
),
$component
);
?>
Answer the question
In order to leave comments, you need to log in
The cant was found in an overly meticulous check of the $_GET value for cipher, as a result of which null was returned in $page_element_count if the get was not set. In short, not all the code posted. [email protected] Alexander Filippenko for help!
Since the standard template works correctly, then the parameters are set correctly, the point is in the code of the template itself.
Is there something in result_modifier.php?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question