Answer the question
In order to leave comments, you need to log in
How to change radiobutton to checkbox in Bitrix filter?
Good afternoon!
I put the catalog.filter component on the page, set up the fields in it, everything works, everything is fine. But there is a question, how to put checkboxes instead of radiobutton - prntscr.com/fm0b0h
These properties (Bouquets for gifts, Baskets and planters, etc.) in the properties of the infoblock have the List type, appearance - Checkboxes and one value YES
The output code for these properties in the filter here:
<?foreach($arResult["ITEMS"] as $arItem):?>
<?if(!array_key_exists("HIDDEN", $arItem)):?>
<tr>
<td valign="top"><?=$arItem["NAME"]?>:</td>
<td valign="top"><?=$arItem["INPUT"]?></td>
</tr>
<?endif?>
<?endforeach;?>
Answer the question
In order to leave comments, you need to log in
the bottom line is that I do not have a smart filter, but catalog.filter
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question