This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Change bitrix smartfilter logic for one property from "OR" to "AND" | |
*/ | |
$arPropIds = ['37', '38']; // ID properties for changing | |
$bSubfilter = 0; | |
foreach ($arPropIds as $propId) | |
{ | |
if ($GLOBALS['arrFilter']['=PROPERTY_' . $propId] && count($GLOBALS['arrFilter']['=PROPERTY_' . $propId]) > 1) | |
{ |