diff --git a/console/controllers/SiteMapController.php b/console/controllers/SiteMapController.php index ae4f9d2..f28fb93 100644 --- a/console/controllers/SiteMapController.php +++ b/console/controllers/SiteMapController.php @@ -178,16 +178,19 @@ class SiteMapController extends Controller //brands foreach($this->getCategories() as $category) { + foreach ($this->getBrands($category) as $brand) { if($this->checkFilter($category, ['brands' => [$brand->brand_id]])){ $url = Url::to(['catalog/category', 'category' => $category, 'filters' => ['brands' => [$brand->alias]]]); $this->createRow($url , 0.8, $content); } } + foreach ($this->getBrands($category) as $brand) { $url = Url::to(['catalog/brand', 'brand' => $brand->alias]); $this->createRow($url, 0.8, $content); } + } //filters 1 lvl -- libgit2 0.21.4