glamourfish Posted February 23, 2007 Share Posted February 23, 2007 Hi All, I think Oscommerce has this feature but i some how scewed mine up and it no longers works. I am wanting to have an image display when I select a category. Say I have 3 Main categories: Bikes Cars Trailors When you click on "bikes" to show thw sub categories, I want an image of a bike to appear in the main area of the page. Make sense...any suggestions/help? THANKS!!! if at first you do succeed...try not to look surprised! Link to comment Share on other sites More sharing options...
Guest Posted February 24, 2007 Share Posted February 24, 2007 you should check your catalog\index.php first for some code like: <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> Its where the categories image appears. You could also verify with your osc admin that the categories image exists. If you have a template its possible this code is controlled by the catalog\includes\header.php. Link to comment Share on other sites More sharing options...
glamourfish Posted February 26, 2007 Author Share Posted February 26, 2007 Thanks a mill! Yep - i can't seem to find that line of code any place & I am using a template. Anything else I should be looking for? Or how can i add it back in? Do i just add it into the index.php file or will i need to add it to some other files as well? if at first you do succeed...try not to look surprised! Link to comment Share on other sites More sharing options...
glamourfish Posted February 26, 2007 Author Share Posted February 26, 2007 Actually let me rephrase my question. If I don't have any of the needed code to display category images, how do I get this to work as if doing it from scratch? if at first you do succeed...try not to look surprised! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.