Commit a6f6464c327feb61fab1dd10d1d094bab119bd1d
1 parent
e688b471
big commti
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
frontend/controllers/SiteController.php
| ... | ... | @@ -274,7 +274,7 @@ class SiteController extends Controller |
| 274 | 274 | print "<image>http://www.linija-svitla.ua{$product->variant->imageUrl}</image>"; |
| 275 | 275 | print "<priceRUAH>" . $product->variant->price . "</priceRUAH>"; |
| 276 | 276 | print "<oldprice>" . $product->variant->price_old . "</oldprice>"; |
| 277 | - print "<param name='Тип'>{$product->category->name}</param>"; | |
| 277 | + | |
| 278 | 278 | $type = false; |
| 279 | 279 | foreach( $product->filters as $filter){ |
| 280 | 280 | |
| ... | ... | @@ -326,9 +326,12 @@ class SiteController extends Controller |
| 326 | 326 | //print "<param name='Монтаж'>Припотолочная</param>"; |
| 327 | 327 | |
| 328 | 328 | } |
| 329 | + | |
| 329 | 330 | if(!$type){ |
| 330 | 331 | print "<param name='Тип'>{$product->category->name}</param>"; |
| 331 | 332 | } |
| 333 | + | |
| 334 | + | |
| 332 | 335 | print "<priceRUSD></priceRUSD>"; |
| 333 | 336 | print "<stock>В наличии</stock>"; |
| 334 | 337 | print "<guarantee></guarantee>"; | ... | ... |