Commit 27ad59d900f711b69d2e154678243e4516287006

Authored by Yarik
1 parent fd238f57

Purpose public fix.

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