Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

categories.php / remove subcategories


stevek1977

Recommended Posts

Im trying to do two things.

 

1) take the categories.php and remove all of the subcategories so that when you click on a category it opens up like normal, but does not list the actual subcategories in category.php.

 

2) take the categories.php and remove all categories so that it only shows subcategories.

 

i appreciate your help.

Link to comment
Share on other sites

Wish I could help ya! I want to remove all the sub-categories from the pages of the categories.

Example:

I have a clothing store and I have misses-plus- and mens wear. In the left column I have all the categories and sub-categories. When they click on misses it shows the sub-categort links on that page. I want it to remove those links and just put info about the misses section since they can access the subs from the menu on the left, I find it useless for the sub-categories to be listed on the category page of Misses-Plus-Mens.

If anyone knows how to remove the sub-categories from the page, please let me know :)

Link to comment
Share on other sites

we are trying to do two different things. i actually want to remove the subcategories from the menu. so when you click on a category it expands the menu with the sub categories below it. i dont want that subcategory to be below it. i just want it to open the page and not have the subs there.

Link to comment
Share on other sites

in the categories.php file that is used in the left colum is what i want to make changes to. basically when you click on a category and it drops down the sub-menu of that category. i want to make it not do that. i only want the categories on the left hand side.

Link to comment
Share on other sites

oh ok, I have it where they are showing but don't drop down. I'm sure there is a contrib or something for what you want.

Have you tried looking there?

Link to comment
Share on other sites

  • 11 months later...
  • 1 year later...
Im trying to do two things. 

1) take the categories.php and remove all of the subcategories so that when you click on a category it opens up like normal, but does not list the actual subcategories in category.php.

2) take the categories.php and remove all categories so that it only shows subcategories.

i appreciate your help.

 

Long time ago...but maybe usefull

 

 

1)

 

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;
   }

 

 

2)

 

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'] == 0) {
       if ($tree[$counter]['next_id'] != false) {
         tep_show_category($tree[$counter]['next_id']);
       }
     return;
   }

Link to comment
Share on other sites

  • 1 month later...
Long time ago...but maybe usefull

1)

 

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;
}

2)

 

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'] == 0) {
	if ($tree[$counter]['next_id'] != false) {
	  tep_show_category($tree[$counter]['next_id']);
	}
  return;
}

 

 

thanks for that!!!

Link to comment
Share on other sites

  • 1 year later...
  • 5 weeks later...

I've read all this and am a little confused. Here's what I would like to do ... REMOVE the subcategory list from the category page. Subcategories in the main (left) menu are fine. At the very least I would like to remove the picture requirement from the subcategotries if they must be listed.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...