Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with category images


Guest

Recommended Posts

Posted

For some reason a category image I've uploaded via Admin for a new category is not showing up. I checked:

 

1. the filename was correct (e.g flowers_category.jpg)

2. the image had loaded into the images folder

3. the size - I tried the original size I wanted then just a 100x100px size

4. the code in catalog/index.php:

 

<?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?>

 

I'm sure it's something really simple that I've overlooked, but I can't for the life of me work out what's wrong. I'm not getting any error messages.

 

Any help would be appreciated, I couldn't find anything on this in the forums :)

Posted

Doh! :blush: I knew I'd figure it out as soon as I posted for help... <_<

 

There was line of code refering to images further down the index.php page which I'd commented out so as not to have the little osC gif show up:

 

<?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?>

 

Hope this helps someone else some time... :)

Archived

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

×
×
  • Create New...