sure.
i'd suggest to connect the header-image to the cPath (it's easy).
basics
each category has it's own cPath. the first step is to write down which categories you want to use and their cPath. eg klick on the category "kilts woman" and write down the cPath from the addressbar.
do it
like zencart does it by default, you should set the header-image in the css file like that:
PHP Code:
#logoWrapper{
background-image: url(../images/header_bg.jpg);
background-repeat: repeat-x;
background-color: #ffffff;
height:75px;
}
now, we connect the css with the cPath's.
create one logoWrapper for each possible logo, and add a '_' and the cPath after "#logoWrapper" like that example:
(assumed, the category "women kilts" has the cPath 1, and "mens kilts" is 2)
PHP Code:
#logoWrapper_1 {
background-image: url(../images/header_bg_women_kilt.jpg);
background-repeat: repeat-x;
background-color: #ffffff;
height:75px;
}
#logoWrapper_2 {
background-image: url(../images/header_bg_men_kilt.jpg);
background-repeat: repeat-x;
background-color: #ffffff;
height:75px;
}
now we come to the file "/includes/templates/your_template_dir/common/tpl_header.php"- find the line <div id="logoWrapper"> (line 70 here)
- just before that line, we specify, which cpaths we want to have the logo changed.
add that code before the <div> and modify the $logo_cpath to your needs (here we allow cpath 1 and 2 to change the logo):
PHP Code:
<?php
unset($logo_cpath);
$logo_cpath[] = "1";
$logo_cpath[] = "2";
/* add as many $logo_cpath[] = ...; as you want */
?>
- replace <div id="logoWrapper"> with that:
PHP Code:
<div id="logoWrapper<?php if (array_search($_REQUEST['cPath'], $logo_cpath)) { echo '_' . $_REQUEST['cPath']; } ?>">
thats it!
may sound tricky, but is completely easy. try it out!
Bookmarks