Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Display category image on category page


archaicsoftware

Recommended Posts

Posted

In my template file for the category, I want to display the category image beneath the breadcrumb. I know where to put the code (i think), but I don't what code to put.

 

How do I display the category image?

Posted

<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>

 

this is already there in index.php page.. line no. near about 65.

 

find that..

 

 

Please take backup of your files before do changes suggested by me

Posted

awesome! I've got the code in the correct place now.

 

However, the category image is being displayed as pixel_trans.gif instead of the image I uploaded in the back end. I can't figure out why that is. My image directory permissions are set to 777 (i thought that would help, but it did not).

 

Any ideas? thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...