Commit c79ebdb9c99f1dd1b6d8be59166a038550eb2d94
1 parent
6aa51c0d
sitemap controller fix noindex
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
console/controllers/SiteMapController.php
... | ... | @@ -178,16 +178,19 @@ class SiteMapController extends Controller |
178 | 178 | |
179 | 179 | //brands |
180 | 180 | foreach($this->getCategories() as $category) { |
181 | + | |
181 | 182 | foreach ($this->getBrands($category) as $brand) { |
182 | 183 | if($this->checkFilter($category, ['brands' => [$brand->brand_id]])){ |
183 | 184 | $url = Url::to(['catalog/category', 'category' => $category, 'filters' => ['brands' => [$brand->alias]]]); |
184 | 185 | $this->createRow($url , 0.8, $content); |
185 | 186 | } |
186 | 187 | } |
188 | + | |
187 | 189 | foreach ($this->getBrands($category) as $brand) { |
188 | 190 | $url = Url::to(['catalog/brand', 'brand' => $brand->alias]); |
189 | 191 | $this->createRow($url, 0.8, $content); |
190 | 192 | } |
193 | + | |
191 | 194 | } |
192 | 195 | |
193 | 196 | //filters 1 lvl | ... | ... |