diff --git a/console/SiteMapController.php b/console/SiteMapController.php index 9ab027a..efcac14 100755 --- a/console/SiteMapController.php +++ b/console/SiteMapController.php @@ -213,16 +213,19 @@ foreach ($this->getCategoriesWithFilters() as $category) { foreach ($category->taxGroups as $group) { - foreach ($group->taxOptions as $option) { - $url = $urlManager->createAbsoluteUrl( - [ - 'catalog/category', - 'category' => $category, - 'filters' => [ $group->lang->alias => [ $option->lang->alias ] ], - ] - ); - $this->createRow($url, 0.8); + if($group->is_filter && $group->meta_robots != 'noindex,nofollow'){ + foreach ($group->taxOptions as $option) { + $url = $urlManager->createAbsoluteUrl( + [ + 'catalog/category', + 'category' => $category, + 'filters' => [ $group->lang->alias => [ $option->lang->alias ] ], + ] + ); + $this->createRow($url, 0.8); + } } + } } -- libgit2 0.21.4