Commit c048018362bd0209a0e293a01a3b4fd627427ab1
1 parent
bfc88efb
big commti
Showing
1 changed file
with
33 additions
and
0 deletions
Show diff stats
frontend/controllers/SiteController.php
@@ -276,6 +276,39 @@ class SiteController extends Controller | @@ -276,6 +276,39 @@ class SiteController extends Controller | ||
276 | print "<oldprice>" . $product->variant->price_old . "</oldprice>"; | 276 | print "<oldprice>" . $product->variant->price_old . "</oldprice>"; |
277 | print "<param name='Тип'>{$product->category->name}</param>"; | 277 | print "<param name='Тип'>{$product->category->name}</param>"; |
278 | foreach( $product->filters as $filter){ | 278 | foreach( $product->filters as $filter){ |
279 | + | ||
280 | + | ||
281 | + $type = false; | ||
282 | + if($filter->group->name == "Тип точечного освещение:"){ | ||
283 | + $type = true; | ||
284 | + print "<param name='Тип'>{$filter->name}</param>"; | ||
285 | + } | ||
286 | + if($filter->group->name == "Тип настенного освещения:"){ | ||
287 | + $type = true; | ||
288 | + print "<param name='Тип'>{$filter->name}</param>"; | ||
289 | + } | ||
290 | + | ||
291 | + if($filter->group->name == "Тип потолочного освещения:"){ | ||
292 | + $type = true; | ||
293 | + print "<param name='Тип'>{$filter->name}</param>"; | ||
294 | + } | ||
295 | + | ||
296 | + | ||
297 | + if($filter->group->name == "Тип уличного освещения:"){ | ||
298 | + $type = true; | ||
299 | + print "<param name='Тип'>{$filter->name}</param>"; | ||
300 | + } | ||
301 | + | ||
302 | + if($filter->group->name == "Тип лампочки:"){ | ||
303 | + $type = true; | ||
304 | + print "<param name='Тип'>{$filter->name}</param>"; | ||
305 | + } | ||
306 | + | ||
307 | + if(!$type){ | ||
308 | + print "<param name='Тип'>{$product->category->name}</param>"; | ||
309 | + } | ||
310 | + | ||
311 | + | ||
279 | if($filter->group->name == "Назначение:"){ | 312 | if($filter->group->name == "Назначение:"){ |
280 | print "<param name='Назначение'>{$filter->name}</param>"; | 313 | print "<param name='Назначение'>{$filter->name}</param>"; |
281 | } | 314 | } |