diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index feb1af0..f4fc87b 100755 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -276,6 +276,39 @@ class SiteController extends Controller print "" . $product->variant->price_old . ""; print "{$product->category->name}"; foreach( $product->filters as $filter){ + + + $type = false; + if($filter->group->name == "Тип точечного освещение:"){ + $type = true; + print "{$filter->name}"; + } + if($filter->group->name == "Тип настенного освещения:"){ + $type = true; + print "{$filter->name}"; + } + + if($filter->group->name == "Тип потолочного освещения:"){ + $type = true; + print "{$filter->name}"; + } + + + if($filter->group->name == "Тип уличного освещения:"){ + $type = true; + print "{$filter->name}"; + } + + if($filter->group->name == "Тип лампочки:"){ + $type = true; + print "{$filter->name}"; + } + + if(!$type){ + print "{$product->category->name}"; + } + + if($filter->group->name == "Назначение:"){ print "{$filter->name}"; } -- libgit2 0.21.4