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,7 +274,7 @@ class SiteController extends Controller | ||
| 274 | print "<image>http://www.linija-svitla.ua{$product->variant->imageUrl}</image>"; | 274 | print "<image>http://www.linija-svitla.ua{$product->variant->imageUrl}</image>"; |
| 275 | print "<priceRUAH>" . $product->variant->price . "</priceRUAH>"; | 275 | print "<priceRUAH>" . $product->variant->price . "</priceRUAH>"; |
| 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 | + |
| 278 | $type = false; | 278 | $type = false; |
| 279 | foreach( $product->filters as $filter){ | 279 | foreach( $product->filters as $filter){ |
| 280 | 280 | ||
| @@ -326,9 +326,12 @@ class SiteController extends Controller | @@ -326,9 +326,12 @@ class SiteController extends Controller | ||
| 326 | //print "<param name='Монтаж'>Припотолочная</param>"; | 326 | //print "<param name='Монтаж'>Припотолочная</param>"; |
| 327 | 327 | ||
| 328 | } | 328 | } |
| 329 | + | ||
| 329 | if(!$type){ | 330 | if(!$type){ |
| 330 | print "<param name='Тип'>{$product->category->name}</param>"; | 331 | print "<param name='Тип'>{$product->category->name}</param>"; |
| 331 | } | 332 | } |
| 333 | + | ||
| 334 | + | ||
| 332 | print "<priceRUSD></priceRUSD>"; | 335 | print "<priceRUSD></priceRUSD>"; |
| 333 | print "<stock>В наличии</stock>"; | 336 | print "<stock>В наличии</stock>"; |
| 334 | print "<guarantee></guarantee>"; | 337 | print "<guarantee></guarantee>"; |