OsWebDesign Posted April 26, 2011 Share Posted April 26, 2011 Hello, I'm trying to insert one banner under only one category. The cPath for this Cat is 50. I want to display it at the top of the product listings (below header area) when you click on it. Thanks, -OSWEB Link to comment Share on other sites More sharing options...
burt Posted April 26, 2011 Share Posted April 26, 2011 Amend index.php and use $current_category_id Covered in this forum and elsewhere (definitely on my own blog) many times. Link to comment Share on other sites More sharing options...
OsWebDesign Posted April 26, 2011 Author Share Posted April 26, 2011 Amend index.php and use $current_category_id Covered in this forum and elsewhere (definitely on my own blog) many times. I've found two or three things, but none of them are working. Here's the code I thought would work, <td bgcolor="#fffffe"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($cPath == "50") echo "<img src=\"http://www.yourtraileronline.com/images/thehogger.png\" title=\"HOGGER\" alt=\"HOGGER\" />"; ?> <tr> <td bgcolor="#fffffe"><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> And it doesn't display anything... am I doing something wrong? Link to comment Share on other sites More sharing options...
Hotclutch Posted April 26, 2011 Share Posted April 26, 2011 Start reading at the top of the page: http://www.oscommerce.com/forums/topic/308605-modifying-sub-category-image-text-links/page__st__60 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.