From f4e641d8d0066f7a73788ffbc2d216eac507ab47 Mon Sep 17 00:00:00 2001 From: yarik Date: Sun, 20 Nov 2016 00:36:43 +0200 Subject: [PATCH] Order frontend --- models/ProductFrontendSearch.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/models/ProductFrontendSearch.php b/models/ProductFrontendSearch.php index 030ec68..dd8086c 100755 --- a/models/ProductFrontendSearch.php +++ b/models/ProductFrontendSearch.php @@ -79,11 +79,17 @@ 'default' => SORT_DESC, 'label' => 'имени от Я до А', ], - 'price' => [ + 'price_asc' => [ 'asc' => [ 'enabledVariants.price' => SORT_ASC ], + 'desc' => [ 'enabledVariants.price' => SORT_ASC ], + 'default' => SORT_ASC, + 'label' => 'по цене по возрастанию', + ], + 'price_desc' => [ + 'asc' => [ 'enabledVariants.price' => SORT_DESC ], 'desc' => [ 'enabledVariants.price' => SORT_DESC ], 'default' => SORT_DESC, - 'label' => 'по цене', + 'label' => 'по цене по уменшению', ], ], ] -- libgit2 0.21.4