Сталкнулся с такой задачей, нужно вывести атрибуты из определённой группы (attribute_group_id=17) вместо описания в категориях.
Не подскажете как можно это решить?
Пока что у меня выглядет всё вот так: (Решение от RGB)
\catalog\controller\product\category.php
$this->data['products'][] = array(
'product_id' => $result['product_id'],
'thumb' => $image,
'name' => $result['name'],
'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
'attribute_groups' => $this->model_catalog_product->getProductAttributes($result['product_id']),
'price' => $price,
'price' => $price,
'special' => $special,
'tax' => $tax,
'rating' => $result['rating'],
'reviews' => sprintf($this->language->get('text_reviews'), (int)$result['reviews']),
'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'] . $url)
);
\catalog\view\theme\default\template\product\category.tpl
<div class="description">
<?php if($product['attribute_groups']) { ?>
<ul>
<?php foreach($product['attribute_groups'] as $attribute_group) { ?><?php if(!strpos($attribute_group['name'], "—")) {?>
<tbody>
<b><font color="#f16325"><?php echo $attribute_group['name']; ?></font></b><br>
<?php foreach($attribute_group['attribute'] as $attribute) { ?><b><?php echo $attribute['name']; ?></b> <?php echo $attribute['text']; ?><br>
<?php } ?>
<?php } ?>
</tbody>
<?php } ?>
</ul>
<?php } ?>
</div>