Commit 9d0ce9e298dc280134e29ef7e235ba8934ac0e3f

Authored by Alexey Boroda
1 parent a6c70819

-After merge

Showing 1 changed file with 25 additions and 22 deletions   Show diff stats
frontend/views/catalog/product.php
@@ -494,15 +494,18 @@ @@ -494,15 +494,18 @@
494 </tr> 494 </tr>
495 <tr class="full short"> 495 <tr class="full short">
496 <td class="name">Бренд</td> 496 <td class="name">Бренд</td>
497 - <td class="value"><?= !empty($product->brand) ? Html::a($product->brand->name, [  
498 - 'catalog/category',  
499 - 'category' => $category,  
500 - 'filters' => [  
501 - 'brands' => [  
502 - $product->brand->alias  
503 - ]  
504 - ]  
505 - ]) : '' ?></td> 497 + <td class="value"><?php
  498 +// echo !empty($product->brand) ? Html::a($product->brand->name, [
  499 +// 'catalog/category',
  500 +// 'category' => $category,
  501 +// 'filters' => [
  502 +// 'brands' => [
  503 +// $product->brand->alias
  504 +// ]
  505 +// ]
  506 +// ]) : '';
  507 + echo $product->brand->name;
  508 + ?></td>
506 </tr> 509 </tr>
507 <?php foreach($product->getActiveProperties($category->category_id) as $group) { 510 <?php foreach($product->getActiveProperties($category->category_id) as $group) {
508 ?> 511 ?>
@@ -511,20 +514,20 @@ @@ -511,20 +514,20 @@
511 <td class="value"> 514 <td class="value">
512 <?php 515 <?php
513 foreach($group->_options as $option) { 516 foreach($group->_options as $option) {
514 - if ($group->is_filter) {  
515 - echo Html::a('&nbsp;' . $option->ValueRenderHTML,  
516 - [  
517 - 'catalog/category',  
518 - 'category' => $category,  
519 - 'filters' => [  
520 - $group->alias => [  
521 - $option->alias  
522 - ]  
523 - ]  
524 - ]);  
525 - } else { 517 +// if ($group->is_filter) {
  518 +// echo Html::a('&nbsp;' . $option->ValueRenderHTML,
  519 +// [
  520 +// 'catalog/category',
  521 +// 'category' => $category,
  522 +// 'filters' => [
  523 +// $group->alias => [
  524 +// $option->alias
  525 +// ]
  526 +// ]
  527 +// ]);
  528 +// } else {
526 echo '&nbsp;', $option->ValueRenderHTML; 529 echo '&nbsp;', $option->ValueRenderHTML;
527 - } 530 +// }
528 } 531 }
529 ?> 532 ?>
530 </td> 533 </td>