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