lapo4ka18 Posted May 13, 2003 Posted May 13, 2003 In my subcategories instead of leters I want images. I downloaded images to each subcategory but it didn't show up as an image. Does anybody know how to do that? Here is a link to see what I mean http://www.megaperfume.com/catalog/default...lt.php?cPath=84 Thanks Roman
sokkerbob Posted May 14, 2003 Posted May 14, 2003 Did you add the image through the administration tool? This uploads the image to your image directory and makes the proper entry in the database. If you did then maybe you deleted some code in your default.php file that calls the image. For starters, you should have some code that looks like this: echo ' <td align="center" class="smallText" style="width: ' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "n"; if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != tep_db_num_rows($categories_query))) { echo ' </tr>' . "n"; echo ' <tr>' . "n"; This code was take from catalog/default.php for MS1
Recommended Posts
Archived
This topic is now archived and is closed to further replies.