Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Link (internal page) under the Categories links


Bandit?

Recommended Posts

Posted

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.

 

16277_os.jpg

Posted

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.

Posted
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

Posted

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.

Archived

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

×
×
  • Create New...