Reply To: Bad Filter Priority

Well it orders by type of condition and not as of the price mode. The code to change that, but keep a good ground order, won’t be easy to make. Maybe just order it by priority, for that I can give you a code 😉

Select Code
1
2
3
4
5
foreach($filters as $key => $filter) {
$filters[] = $filter;
$order[$key] = $filter['imp'];
}
array_multisort($order, SORT_ASC, SORT_NUMERIC, $filter);

Regards