Здравствуйте! Пробовал это сделать на моем магазине версия opencart 2.1.0.1 по приведенной ниже инструкции, не работает:
"в контроллер header.php добавьте массив со статьями:
$this->load->model('catalog/information');
$this->data['informations'] = array();
foreach ($this->model_catalog_information->getInformations() as $result) {
if ($result['bottom']) {
$this->data['informations'][] = array(
'title' => $result['title'],
'href' => $this->url->link('information/information', 'information_id=' . $result['information_id'])
);
}
}
а в файле header.tpl (там где вам надо повыводить перечень статей, добавляете:
<?php if ($informations) { ?>
<ul>
<?php foreach ($informations as $information) { ?>
<li><a href="<?php echo $information['href']; ?>"><i class="icon-file-alt"> </i> <?php echo $information['title']; ?></a></li>
<?php } ?>
</ul>
<?php } ?>"