Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

categories


Guest

Recommended Posts

Posted

the code is in the catalog\index.php where it places the categories,images,links

 

	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";
  }
}

you could change the class="YourNewClassHere" instead of the smallText then define the entry in the .css file.

If you only want the link you could also add a different class in the tep_href_link as a parameter.

 

tep_href_link(FILENAME_DEFAULT, $cPath_new . ' class="YourNewClassHere"')

Posted

hi,

 

Can anyone help me?

 

I would like to change the link of a product category so it goes somewhere else.

 

Ive created a category called New Products and would like it to point to whatsnew.php

 

I have tried but cant find out where to edit it.

 

any help appreciated.

 

Thanks! :)

Archived

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

×
×
  • Create New...