Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to make "Categories" to a Link?


stratula

Recommended Posts

Posted

hi,

i want to make the header from the categories table as a link to home

(that means when i klick on Categories it should go back to index)

tried some things but nothing works like i would it have :blush:

 

r there any ideas?

 

should be this code wich has to change in ../includes/boxes/categories.php

 

<!-- categories //-->
	  <tr>
		<td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
						   'text'  => BOX_HEADING_CATEGORIES);  

 new infoBoxHeading($info_box_contents, true, false);

 $categories_string = '';

Posted

backup your file and then try this:

 

<!-- categories //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => '<a href="'. tep_href_link(FILENAME_DEFAULT) . '">' . BOX_HEADING_CATEGORIES . '</a>' ); 

new infoBoxHeading($info_box_contents, true, false);

Archived

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

×
×
  • Create New...