diff --git a/console/controllers/SiteMapController.php b/console/controllers/SiteMapController.php index 962aebb..599b8d5 100644 --- a/console/controllers/SiteMapController.php +++ b/console/controllers/SiteMapController.php @@ -172,14 +172,14 @@ 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->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); + } + } + } // // //filters 1 lvl // foreach($this->getCategories() as $category) { -- libgit2 0.21.4