| @@ 149-151 (lines=3) @@ | ||
| 146 | switch ($col) { |
|
| 147 | case 'price': |
|
| 148 | $colName = Item\Offer\Price::colPrefix() . 'price'; |
|
| 149 | if (!empty($filter['min'])) { |
|
| 150 | $selectOptions['where'][] = [$colName, (float) $filter['min'], '>=']; |
|
| 151 | } |
|
| 152 | if (!empty($filter['max'])) { |
|
| 153 | $selectOptions['where'][] = [$colName, (float) $filter['max'], '<=']; |
|
| 154 | } |
|
| @@ 152-154 (lines=3) @@ | ||
| 149 | if (!empty($filter['min'])) { |
|
| 150 | $selectOptions['where'][] = [$colName, (float) $filter['min'], '>=']; |
|
| 151 | } |
|
| 152 | if (!empty($filter['max'])) { |
|
| 153 | $selectOptions['where'][] = [$colName, (float) $filter['max'], '<=']; |
|
| 154 | } |
|
| 155 | break; |
|
| 156 | case 'options': |
|
| 157 | case 'offerOptions': |
|