S
S
SteepNET2020-01-01 14:45:56
JavaScript
SteepNET, 2020-01-01 14:45:56

Displaying the number of products found in the smart filter does not work?

Good afternoon!
Bitrix, smart filter (catalog.smart.filter), on the main page filters the output of a non-complex component (catalog.section), everything works! But there was a strange problem, there are no errors in the console.
The output of the number of products found always shows the maximum if sliders are used, but if you use other filter fields, then everything is fine. The problem is in the filters with sliders.
Template catalog.smart.filter
/bitrix/www/bitrix/components/bitrix/catalog.smart.filter/templates/bootstrap_v4/template.php
~ 795 line , displaying the counter with the transition button, not only the counter does not work, but also the transition, just resets the page and that's it. AJAX in components is disabled.
I noticed such a feature, if you filter by other fields that are not sliders, when filtering, the scale of the slider is darkened on the price, but the slider hinge itself is not shifted, the slider in css is customized for the slider.

<div class="smart-filter-popup-result <? if ($arParams["FILTER_VIEW_MODE"] == "VERTICAL") echo $arParams["POPUP_POSITION"] ?>"
                                 id="modef" <? if (!isset($arResult["ELEMENT_COUNT"])) echo 'style="display:none"'; ?>
                                 style="display: inline-block;">
                                <? echo GetMessage("CT_BCSF_FILTER_COUNT", array("#ELEMENT_COUNT#" => '<span id="modef_num">' . intval($arResult["ELEMENT_COUNT"]) . '</span>')); ?>
                                <span class="arrow"></span>
                                <br/>
                                <a href="<? echo $arResult["FILTER_URL"] ?>"
                                   target=""><? echo GetMessage("CT_BCSF_FILTER_SHOW") ?></a>
                            </div>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question