Commit 27ad59d900f711b69d2e154678243e4516287006

Authored by Yarik
1 parent fd238f57

Purpose public fix.

frontend/controllers/FilterController.php
@@ -50,8 +50,8 @@ @@ -50,8 +50,8 @@
50 ->joinWith('products.brand.lang') 50 ->joinWith('products.brand.lang')
51 ->joinWith('taxGroup') 51 ->joinWith('taxGroup')
52 ->where([ 52 ->where([
53 - 'category.category_id' => $category->category_id,  
54 - 'tax_group.alias' => 'purpose', 53 + 'category.category_id' => $category->category_id,
  54 + 'tax_group.tax_group_id' => 5,
55 ]) 55 ])
56 ->all(); 56 ->all();
57 $brands = []; 57 $brands = [];
@@ -120,7 +120,7 @@ @@ -120,7 +120,7 @@
120 $dataProvider->pagination = false; 120 $dataProvider->pagination = false;
121 $query = $dataProvider->query; 121 $query = $dataProvider->query;
122 $query->with('variants.lang') 122 $query->with('variants.lang')
123 - ->joinWith('lang', true, 'INNER JOIN') 123 + ->joinWith('lang', true, 'INNER JOIN')
124 ->joinWith('brand.lang') 124 ->joinWith('brand.lang')
125 ->joinWith('options.lang') 125 ->joinWith('options.lang')
126 ->joinWith('categories.lang') 126 ->joinWith('categories.lang')
@@ -150,7 +150,7 @@ @@ -150,7 +150,7 @@
150 ->joinWith('taxGroup') 150 ->joinWith('taxGroup')
151 ->where([ 151 ->where([
152 'tax_option.tax_option_id' => $id, 152 'tax_option.tax_option_id' => $id,
153 - 'tax_group.alias' => 'purpose', 153 + 'tax_group.tax_group_id' => 5,
154 ]) 154 ])
155 ->joinWith('lang', true, 'INNER JOIN') 155 ->joinWith('lang', true, 'INNER JOIN')
156 ->one(); 156 ->one();
frontend/controllers/SiteController.php
@@ -88,7 +88,7 @@ @@ -88,7 +88,7 @@
88 ->all(); 88 ->all();
89 $purposes = TaxGroup::find() 89 $purposes = TaxGroup::find()
90 ->where([ 90 ->where([
91 - 'tax_group.alias' => 'purpose', 91 + 'tax_group.tax_group_id' => 5,
92 'level' => 0, 92 'level' => 0,
93 ]) 93 ])
94 ->joinWith('options.lang') 94 ->joinWith('options.lang')