Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to remove the sub-categories from 'Categories'


Broadsword

Recommended Posts

Hello,

 

I'm still fiddling with my site and want my 'Catergories' box to look like this here - https://www1.securesiteserver.co.uk/toerag/...8f8d0814c39656c

so that when you click on one of the categories they are just displayed in the centre rather than also displaying the sub-categories like this http://grannysspeedshop.co.uk/catalog/index.php?cPath=1

 

Thanks.

 

PS - Hope that makes sense!

Link to comment
Share on other sites

  • 2 weeks later...
Hello,

 

I'm still fiddling with my site and want my 'Catergories' box to look like this here -  https://www1.securesiteserver.co.uk/toerag/...8f8d0814c39656c

so that when you click on one of the categories they are just displayed in the centre rather than also displaying the sub-categories like this http://grannysspeedshop.co.uk/catalog/index.php?cPath=1

 

Thanks.

 

PS - Hope that makes sense!

 

 

As im awake and been trying to work this out (with no luck!) i thought i'dbump this up in case someone can now shed some light.

 

Any ideas anyone?

Link to comment
Share on other sites

I surely can't be the only person wanting this so i thought i'd post the solution that i found while hunting though the posts here.

 

 

 

add in te file categories.php the following code after the code:

function tep_show_category($counter) {

global $tree, $categories_string, $cPath_array;

 

 

 

   if ($tree[$counter]['level'] == 1) {
   if ($tree[$counter]['next_id'] != false) {
	 tep_show_category($tree[$counter]['next_id']);
   }
 return;
  }

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...