I have updated my cart to show a different header on the home page using this change within "catalog/controller/common/header.php"
the Home page is using a different header to the rest of the site (header_home.tpl opposed to header.tpl)
Code: Select all
if (!isset($this->request->get['route']) || (isset($this->request->get['route']) && ($this->request->get['route'] == 'common/home'))) {
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/header_home.tpl')) {
$this->template = $this->config->get('config_template') . '/template/common/header_home.tpl';
} else {
$this->template = 'default/template/common/header_home.tpl';
}
} else {
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/header.tpl')) {
$this->template = $this->config->get('config_template') . '/template/common/header.tpl';
} else {
$this->template = 'default/template/common/header.tpl';
}
}
Basically the code says: if the page is common/home then use the alternative header. I want it to use the same alternative header if it is common/home or information/information.
Any idea's how I can change this so it applies the same logic to more than one page?
Thanks,