After reading and trying a view day`s i cant seem to figure it out.
i made a simple custom module (in left column) that will only show when a product is viewed.
in this module i want to show manufacture name or id from the product that is viewed, i thought because it is on the same page as the product
i just could use
Code: Select all
<?php if($product['manufacturer']){
echo ($product['manufacturer']);
}?>
Is there any one so kindly that can tell me what to add to the controller to get the manufacturer name or id to display
Controller code
Code: Select all
<?php
class ControllerModuleDidyouknow extends Controller {
protected function index() {
$this->language->load('module/didyouknow');
$this->data['heading_title'] = $this->language->get('heading_title');
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/didyouknow.tpl')) {
$this->template = $this->config->get('config_template') . '/template/module/didyouknow.tpl';
} else {
$this->template = 'default/template/module/didyouknow.tpl';
}
$this->render();
}
}
?>

Kind Regards
Stefan