`
&includeTVs = `image,price,old_price,new_good,sku,model,brand,quantity`
&tpl = `SimpleSearchResult`
&tplWrapper = `@INLINE <div class="sisea-results-list box inline">
</div>`
&limit = ``
Подскажите как правильно составить условия фильтрации?
<?php
$items_for_json= [];
if( isset($_GET['ff_price']) && is_array($_GET['ff_price']) ){
$items_for_json[] = '"price:":'.(int)$_GET['ff_price']['min'];
}
$ret_param = "{" . implode(',', $items_for_json) . "}";
return $ret_param;
при таком запросе фильтрует по цене, а как добавить несколько параметров? больше или равно? так `{«price:>=»:1,«price:<=»:100}` не работает
Евгений 04.08.2020 16:07 #