Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Create a home link in Categories ?


heartandsoul

Recommended Posts

Hi, my site is perfumes.

 

In the Categories box on the left, I have the following links :-

 

For ladies ->

For mens ->

 

How do I modify the code so that it includes a "Home" link to bring me back to the main page ?

eg. so the category box looks like this :-

 

Home

For ladies ->

For mens ->

 

I believe the file to edit is in \includes\boxes\categories.php but unsure what to edit/add.

Link to comment
Share on other sites

Can anyone assist please ?

 

 

in categories.php at the bottom you will find this code :

 

 

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => $categories_string

);

new infoBox($info_box_contents);

 

 

you can change that in :

 

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">Home</a><br>' . $categories_string

);

new infoBox($info_box_contents);

Treasurer MFC

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...