Commit f4e641d8d0066f7a73788ffbc2d216eac507ab47
1 parent
8d168e89
Order frontend
Showing
1 changed file
with
8 additions
and
2 deletions
Show diff stats
models/ProductFrontendSearch.php
| ... | ... | @@ -79,11 +79,17 @@ |
| 79 | 79 | 'default' => SORT_DESC, |
| 80 | 80 | 'label' => 'имени от Я до А', |
| 81 | 81 | ], |
| 82 | - 'price' => [ | |
| 82 | + 'price_asc' => [ | |
| 83 | 83 | 'asc' => [ 'enabledVariants.price' => SORT_ASC ], |
| 84 | + 'desc' => [ 'enabledVariants.price' => SORT_ASC ], | |
| 85 | + 'default' => SORT_ASC, | |
| 86 | + 'label' => 'по цене по возрастанию', | |
| 87 | + ], | |
| 88 | + 'price_desc' => [ | |
| 89 | + 'asc' => [ 'enabledVariants.price' => SORT_DESC ], | |
| 84 | 90 | 'desc' => [ 'enabledVariants.price' => SORT_DESC ], |
| 85 | 91 | 'default' => SORT_DESC, |
| 86 | - 'label' => 'по цене', | |
| 92 | + 'label' => 'по цене по уменшению', | |
| 87 | 93 | ], |
| 88 | 94 | ], |
| 89 | 95 | ] | ... | ... |