Добрый день. Почему в инпутах smart.filter в битрикс 1с появляется [object Object]?
Смартфильтр кастомизировал, но только верстку. Подскажите, пожалуйста, где искать проблему?
<form name="<?echo $arResult["FILTER_NAME"]."_form"?>" action="<?echo $arResult["FORM_ACTION"]?>" method="get" class="smartfilter">
<?foreach($arResult["HIDDEN"] as $arItem):?>
<input type="hidden" name="<?echo $arItem["CONTROL_NAME"]?>" id="<?echo $arItem["CONTROL_ID"]?>" value="<?echo $arItem["VALUE"]?>" />
<?endforeach;?>
<div class="row">
<?foreach($arResult["ITEMS"] as $key=>$arItem)//prices
{
$key = $arItem["ENCODED_ID"];
if(isset($arItem["PRICE"])):
if ($arItem["VALUES"]["MAX"]["VALUE"] - $arItem["VALUES"]["MIN"]["VALUE"] <= 0)
continue;
$precision = 0;
$step_num = 4;
$step = ($arItem["VALUES"]["MAX"]["VALUE"] - $arItem["VALUES"]["MIN"]["VALUE"]) / $step_num;
$prices = array();
if (Bitrix\Main\Loader::includeModule("currency"))
{
for ($i = 0; $i < $step_num; $i++)
{
$prices[$i] = CCurrencyLang::CurrencyFormat($arItem["VALUES"]["MIN"]["VALUE"] + $step*$i, $arItem["VALUES"]["MIN"]["CURRENCY"], false);
}
$prices[$step_num] = CCurrencyLang::CurrencyFormat($arItem["VALUES"]["MAX"]["VALUE"], $arItem["VALUES"]["MAX"]["CURRENCY"], false);
}
else
{
$precision = $arItem["DECIMALS"]? $arItem["DECIMALS"]: 0;
for ($i = 0; $i < $step_num; $i++)
{
$prices[$i] = number_format($arItem["VALUES"]["MIN"]["VALUE"] + $step*$i, $precision, ".", "");
}
$prices[$step_num] = number_format($arItem["VALUES"]["MAX"]["VALUE"], $precision, ".", "");
}
?>
<div class="<?if ($arParams["FILTER_VIEW_MODE"] == "HORIZONTAL"):?>col-sm-6 col-md-4<?else:?>col-lg-12<?endif?> bx-filter-parameters-box bx-active">
<span class="bx-filter-container-modef"></span>
<div style="margin-bottom: 20px;margin-top: 20px;" class="product-filter__item-title bx-filter-parameters-box-title" onclick="smartFilter.hideFilterProps(this)"><span style="color: #2b2d2f; "><?=$arItem["NAME"]?> </span></div>
<div class="bx-filter-block" data-role="bx_filter_block">
<div class="row bx-filter-parameters-box-container">
<div class="product-filter__prices">
<div class="product-filter__price">
<input
class="product-price__min min-price"
type="text"
name="<?echo $arItem["VALUES"]["MIN"]["CONTROL_NAME"]?>"
id="<?echo $arItem["VALUES"]["MIN"]["CONTROL_ID"]?>"
value="<?echo $arItem["VALUES"]["MIN"]["HTML_VALUE"]?>"
size="5"
onkeyup="smartFilter.keyup(this)"
/>
</div>
<div class="product-filter__price">
<input
class="product-price__max max-price"
type="text"
name="<?echo $arItem["VALUES"]["MAX"]["CONTROL_NAME"]?>"
id="<?echo $arItem["VALUES"]["MAX"]["CONTROL_ID"]?>"
value="<?print_r($arItem["VALUES"]["MAX"]["HTML_VALUE"]);?>"
size="5"
onkeyup="smartFilter.keyup(this)"
/>
</div>
</div>