Files we need to edit: 3
open: catalog\controller\common\footer
after:
Code: Select all
protected function index() {
$this->language->load('common/footer');
Code: Select all
// information in footer
$this->load->model('catalog/information');
$this->load->model('tool/seo_url');
$this->data['text_contact'] = $this->language->get('text_contact');
$this->data['text_sitemap'] = $this->language->get('text_sitemap');
$this->data['text_information'] = $this->language->get('text_information');
$this->data['informations'] = array();
foreach ($this->model_catalog_information->getInformations() as $result) {
$this->data['informations'][] = array(
'title' => $result['title'],
'href' => $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=information/information&information_id=' . $result['information_id']),
);
}
$this->data['contact'] = HTTP_SERVER . 'index.php?route=information/contact';
$this->data['sitemap'] = HTTP_SERVER . 'index.php?route=information/sitemap';
//end
open: catalog\language\english\common\footer
befor ?>
add:
Code: Select all
$_['text_contact'] = 'Contact Us';
$_['text_sitemap'] = 'Sitemap';
$_['text_information'] = 'Information';
open: catalog\view\theme\default\template\common\footer.tpl (the name of your template)
add this to the desired location to display (this is how i placed it, be creative):
Code: Select all
<div>
<ul>
<?php foreach ($informations as $information) { ?>
<li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li>
<?php } ?>
<li><a href="<?php echo $contact; ?>"><?php echo $text_contact; ?></a></li>
<li><a href="<?php echo $sitemap; ?>"><?php echo $text_sitemap; ?></a></li>
</ul>
</div>