BRoy Posted August 3, 2006 Share Posted August 3, 2006 I'm in the process of setting up a site and want to add a link to the category list. I want it to look something like: MyLink Hardware -> (6) Software -> (4) and so on MyLink would be a link to another page (some like http://www.mysite.com/catalog/ccc.php) Could someone direct me to the correct file (and perhaps a tip or two about the correct coding) to add this to? Thank you Link to comment Share on other sites More sharing options...
Guest Posted August 3, 2006 Share Posted August 3, 2006 you change your catalog\includes\boxes\categories.php in that file you have this code tep_show_category_products($first_element); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $categories_string ); change it to add your link tep_show_category_products($first_element); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . 'My Link Text' . '</a>' ); $info_box_contents[] = array('align' => 'left', 'text' => $categories_string ); just change the link the way you want Link to comment Share on other sites More sharing options...
BRoy Posted August 4, 2006 Author Share Posted August 4, 2006 That worked great. Thank you you change your catalog\includes\boxes\categories.php in that file you have this code tep_show_category_products($first_element); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $categories_string ); change it to add your link tep_show_category_products($first_element); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . 'My Link Text' . '</a>' ); $info_box_contents[] = array('align' => 'left', 'text' => $categories_string ); just change the link the way you want Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.