Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

fixed a 'previously declared tep_show_catagory' but..


jsmith2

Recommended Posts

first I had this error:

 

when I clicked 'view pending order status' link

 

Fatal error: Cannot redeclare tep_show_category() (previously declared in /includes/header.php:220) in includes/boxes/categories.php on line 13

 

so then, I fixed it by commenting out:

 

 

/* function tep_show_category($counter) {

global $tree, $categories_string, $cPath_array;

 

for ($i=0; $i<$tree[$counter]['level']; $i++) {

$categories_string .= "  ";

}

 

$categories_string .= '<a href="';

 

if ($tree[$counter]['parent'] == 0) {

$cPath_new = 'cPath=' . $counter;

} else {

$cPath_new = 'cPath=' . $tree[$counter]['path'];

}

 

$categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">';

 

if (isset($cPath_array) && in_array($counter, $cPath_array)) {

$categories_string .= '<b>';

}

 

// display category name

$categories_string .= $tree[$counter]['name'];

 

if (isset($cPath_array) && in_array($counter, $cPath_array)) {

$categories_string .= '</b>';

}

 

if (tep_has_category_subcategories($counter)) {

$categories_string .= '->';

}

 

$categories_string .= '</a>';

 

if (SHOW_COUNTS == 'true') {

$products_in_category = tep_count_products_in_category($counter);

if ($products_in_category > 0) {

$categories_string .= ' (' . $products_in_category . ')';

}

}

 

$categories_string .= '<br>';

 

if ($tree[$counter]['next_id'] != false) {

tep_show_category($tree[$counter]['next_id']);

}

}

 

*/

?>

<!-- categories //-->

<tr>

<td>

 

 

Now this is what I get...

 

screenshot.jpg

 

 

Sorry for the long post, hope I can get answers soon! Thanks!

Link to comment
Share on other sites

This will help on editing column_left

 

http://www.oscommerce.info/kb/osCommerce/Catalog_Area/Boxes

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

The screenshot shown has two columns, will it get rid of the one thats not supposed to be there?

 

Got it,

 

Had to remove all tables within the body, just in the one php file.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...