|
@@ 232-234 (lines=3) @@
|
| 229 |
|
foreach ($options['filters'] as $col => $filter) { |
| 230 |
|
switch ($col) { |
| 231 |
|
case 'price': |
| 232 |
|
if (!empty($filter['min'])) { |
| 233 |
|
$selectOptions['where'][] = [Ecommerce\Item\Offer\Price::colPrefix() . 'price', (float) $filter['min'], '>=']; |
| 234 |
|
} |
| 235 |
|
if (!empty($filter['max'])) { |
| 236 |
|
$selectOptions['where'][] = [Ecommerce\Item\Offer\Price::colPrefix() . 'price', (float) $filter['max'], '<=']; |
| 237 |
|
} |
|
@@ 235-237 (lines=3) @@
|
| 232 |
|
if (!empty($filter['min'])) { |
| 233 |
|
$selectOptions['where'][] = [Ecommerce\Item\Offer\Price::colPrefix() . 'price', (float) $filter['min'], '>=']; |
| 234 |
|
} |
| 235 |
|
if (!empty($filter['max'])) { |
| 236 |
|
$selectOptions['where'][] = [Ecommerce\Item\Offer\Price::colPrefix() . 'price', (float) $filter['max'], '<=']; |
| 237 |
|
} |
| 238 |
|
break; |
| 239 |
|
case 'options': |
| 240 |
|
foreach ($filter as $optionId => $optionValue) { |