debreli
OpenCart-TR
aç catalog/controller/common/footer.php aç
bul
sonrasına ekle
aç catalog/view/theme/default/template/common/footer.tpl
istediğiniz bir yere aşağıdaki kodu ekleyin
bul
Kod:
'href' => $this->url->link('information/information', 'information_id=' . $result['information_id'])
);
}
sonrasına ekle
Kod:
$this->load->model('catalog/manufacturer');
$this->load->model('tool/image');
$this->load->model('catalog/product');
$this->data['manufacturers'] = array();
$results = $this->model_catalog_manufacturer->getManufacturers();
foreach ($results as $result) {
$this->data['manufacturers'][] = array(
'manufacturer_image' => $this->model_tool_image->resize($result['image'],80,80),
'name' => $result['name'],
'manufacturer_href' => $this->url->link('product/manufacturer/product', 'manufacturer_id=' . $result['manufacturer_id'])
);
}
aç catalog/view/theme/default/template/common/footer.tpl
istediğiniz bir yere aşağıdaki kodu ekleyin
Kod:
<?php if ($manufacturers){ ?><?php foreach ($manufacturers as $manufacturer){ ?><a href="<?php echo $manufacturer['manufacturer_href']; ?>"><img src="<?php echo $manufacturer['manufacturer_image']; ?>" title="<?php echo $manufacturer['name']; ?>" alt="<?php echo $manufacturer['name']; ?>" width="38px" height="38px" /></a> <?php } ?><?php } ?>