Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Index


Kasketkarl.nu

Recommended Posts

Hello.

I tryed to delete the images shown at the screenshot:

ksempel.JPG

 

 

Isnt it possible to just show the text without the image:

Code:

<!-- BOF: Show subcategories in Product Listing -->

   <tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2"><tr>
	<?php    
	    if ($_GET['manufacturers_id'] == '')
		{
		        if (isset($cPath)) {
		if (preg_match('/_/', $cPath)) {
			$category_links = array_reverse($cPath_array);
			$cat_to_search = $category_links[0];
			}
		else {
			$cat_to_search = $cPath;
			}
	    // check to see if there are deeper categories within the current category		  	
	  	$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . $cat_to_search . "' and c.categories_id = cd.categories_id and cd.language_id = '" . $languages_id . "' order by sort_order, cd.categories_name");
		    if (tep_db_num_rows($categories_query) > 0 ) {
			    $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" 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";
						}
				}
			}
	}	
		}
		else
		{
		echo "";
		}
		?>
</tr></table></td>
</tr>
<tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
   </tr>
<!-- EOF: Show subcategories in Product Listing -->

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...