Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Very easy


lapo4ka18

Recommended Posts

Posted

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

Archived

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

×
×
  • Create New...