arkisaeo Posted October 2, 2010 Posted October 2, 2010 I seem to have found myself stuck with another little problem. Here's an explanation of things: My client sells health and beauty products. This includes sections like Skin Care, Body Care, Home Care, etc. For the most part, the entire site is the same--same layout, same header and footer, etc. for all the pages. The problem is, my client wants to add a new special line of products: Perfumes. And my client wants the header for the Perfumes section (category/product list, individual product pages, etc.) to be different from the rest of the site. Is this even possible? And if so, how? I tried searching through the add-ons and other posts. I couldn't find anything in the add-ons. As for other posts, the replies are rather vague and don't really give any examples on how to achieve such a thing.
germ Posted October 2, 2010 Posted October 2, 2010 /catalog/includes/header.php Find: <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td> Replace with: <?php $image = 'logo.gif'; // replace this image name with the "normal" logo // replace the 32 in the next line with the cPath of the perfume category if ( $cPath == '32' ) { $image = 'perfume.gif'; // replace this image name with the alternate logo for perfume pages } ?> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . $image, STORE_NAME) . '</a>'; ?></td> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.