Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing image on category image


omini

Recommended Posts

Hi everyone, new here

 

I have a category with 3 subcategories. I only have an image for one of the categories, so when the categories are listed, one image shows while the others are just text. I would like them all to show text and no images at all.

 

I tried looking for this in the index.php file, but couldn't figure it out. Is there anyone that could tell me what I need to remove from the file?

 

Thanks!

Omini

Link to comment
Share on other sites

One way to do it would be to edit your index.php

 

look for this line

      echo '                <td align="center" class="smallTextbottom" 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";

and change it to

      echo '                <td align="center" class="smallTextbottom" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories['categories_name'] . '</a></td>' . "\n";

 

Otherwise you need to remove the image associated with the category. I think that needs to be done via phpmyadmin unless you have a contribution that allows you to remove images

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...