Bandit? Posted September 28, 2005 Posted September 28, 2005 Hello, I need to add an internal link underneath the Categories default links. Ne new internal link shoud have the structure of the main page (same header, footer and left right menu) but i want to insert another content. The following image shows where i want to put that link.
mintpeel Posted September 28, 2005 Posted September 28, 2005 Are you wanting to add a custom page to your site but laid out as the shop is? All you need to do is, open catalog/privacy then save it as the new page name, add the new page name to the filenames list, then do the same for the content includes/language/english/newpage. Then define the new page in the language file e.g. english. then add the link to the categories page at the bottom, using a array('text' => '<a href="' . tep_href_link(FILENAME_NEWPAGE) . '">' . BOX_INFORMATION_NEWPAGE . '</a><br>' . This is my first attempt at support so be kind all commentors, i just want to give something back to os.
Bandit? Posted September 28, 2005 Author Posted September 28, 2005 All you need to do is, open catalog/privacy then save it as the new page name, add the new page name to the filenames list, then do the same for the content includes/language/english/newpage. I get that, but i didn't get how to include the link into the categories page. I've edited the catalog/includes/boxes/categoeries.php but i din't make it. please help me more. i am a rookie in osC & PHP. Thanks
mintpeel Posted September 28, 2005 Posted September 28, 2005 find at bottom of categories.php tep_show_category($first_element); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $categories_string); new infoBox($info_box_contents); and add this before the end colon ('text' => '<a href="' . tep_href_link(FILENAME_PAGENAME) . '">' . BOX_INFORMATION_PAGENAME . '</a><br>'; PAGENAME = the name of the page you created. giving you this: $info_box_contents[] = array('align' => 'center', 'text' => $categories_string) ('text' => '<a href="' . tep_href_link(FILENAME_PAGENAME) . '">' . BOX_INFORMATION_PAGENAME . '</a><br>'; if this does not work try manipulating where you put the code, e.g. adding the whole line as here $info_box_contents[] = array('align' => 'center', 'text' => $categories_string) $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_PAGENAME) . '">' . BOX_INFORMATION_PAGENAME . '</a><br>'; thats as much help as i can offer if this doesnt work you will have to wait for a pro to answer your question.
Bandit? Posted September 30, 2005 Author Posted September 30, 2005 Yes, i finally succeded. Thanks a lot. :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.