Guest Posted September 27, 2005 Posted September 27, 2005 i would like to change the link style of the categories. for example: http://demo.oscommerce.com/index.php?cPath=1 where it reads "Printers", "CDRom Drives", etc. where do i find the table or function?
Guest Posted September 27, 2005 Posted September 27, 2005 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"')
Guest Posted September 28, 2005 Posted September 28, 2005 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! :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.