From 163914fd205b53073c76d68ebd450b6cd742c0aa Mon Sep 17 00:00:00 2001 From: Karnovsky A Date: Mon, 30 May 2016 13:47:59 +0300 Subject: [PATCH] - --- frontend/models/ProductFrontendSearch.php | 1 + frontend/views/site/index.php | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/models/ProductFrontendSearch.php b/frontend/models/ProductFrontendSearch.php index 45bd4ae..63d05d5 100755 --- a/frontend/models/ProductFrontendSearch.php +++ b/frontend/models/ProductFrontendSearch.php @@ -105,6 +105,7 @@ class ProductFrontendSearch extends Product { $query->andWhere([ProductCategory::tableName() .'.category_id' => $category->category_id]); } $query->groupBy(TaxOption::tableName() .'.tax_option_id'); + $query->orderBy(TaxOption::tableName() .'.sort', SORT_ASC); $query->limit(null); if (!empty($params['prices'])) { if ($params['prices']['min'] > 0 || $params['prices']['max'] > 0) { diff --git a/frontend/views/site/index.php b/frontend/views/site/index.php index 8154678..ab498f6 100755 --- a/frontend/views/site/index.php +++ b/frontend/views/site/index.php @@ -5,10 +5,10 @@ use yii\web\View; use frontend\widgets\BannerWidget; use yii\helpers\Url; use frontend\widgets\Seo; -$this->params['seo']['seo_text'] = 'TEST SEO TEXT'; -$this->params['seo']['h1'] = 'TEST H1'; -$this->params['seo']['description'] = 'TEST DESCRIPTION'; -$this->params['seo']['fields']['name'] = 'TEST NAME FROM FIELD'; +//$this->params['seo']['seo_text'] = 'TEST SEO TEXT'; +//$this->params['seo']['h1'] = 'TEST H1'; +//$this->params['seo']['description'] = 'TEST DESCRIPTION'; +//$this->params['seo']['fields']['name'] = 'TEST NAME FROM FIELD'; $this->registerJsFile ( Yii::$app->request->baseUrl . '/js/slides.min.jquery.js', ['position' => View::POS_HEAD, 'depends' => ['yii\web\JqueryAsset']]); -- libgit2 0.21.4