Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove Images in subcategories


Guest

Recommended Posts

I believe if you just go into your admin area and click on configuration then on images and set require images to false the images should dissapear. If not let me know and I will tell you the code to remove to remove the images.

Wendy James

 

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

Link to comment
Share on other sites

Thanks for the help Wendy, but unfortunately that does not work. Can you please tell me the code I need to adjust? As well, if you know the code, do you also know how I can increase the font size of that subcategories text? Thanks

Link to comment
Share on other sites

Thanks for the help Wendy, but unfortunately that does not work.  Can you please tell me the code I need to adjust?  As well, if you know the code, do you also know how I can increase the font size of that subcategories text?  Thanks

 

 

I believe if you open your index.php and look for

 

    $rows = 0;
   while ($categories = tep_db_fetch_array($categories_query)) {
     $rows++;
     $cPath_new = tep_get_path($categories['categories_id']);
     $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';
     echo '                <td align="center" class="smallText" 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 != $number_of_categories)) {
       echo '              </tr>' . "\n";
       echo '              <tr>' . "\n";
     }
   }

and change it to

    $rows = 0;
   while ($categories = tep_db_fetch_array($categories_query)) {
     $rows++;
     $cPath_new = tep_get_path($categories['categories_id']);
     $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';
     echo '                <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories['categories_name'] . '</a></td>' . "\n";
     if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {
       echo '              </tr>' . "\n";
       echo '              <tr>' . "\n";
     }
   }

 

It will remove the subcategory images listed at the top of the page above the "new products for" box.

 

Let me know if that doesn't work. :)

Wendy James

 

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

Link to comment
Share on other sites

Oh, and you can change the font size by making a class in youe stylesheet or using one you already have and adding it to the

<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">

like

<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '" class="newstyle">

Wendy James

 

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

Link to comment
Share on other sites

Thanks a lot Wendy your coding worked to eliminate the subcategory images. I hate to sound like an idiot, but can you give me a little more instruction as to how to change the font size? I am not 100% sure how to do that. Thanks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...