Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

categories.php / remove subcategories


stevek1977

Recommended Posts

Posted

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.

Posted

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 :)

Posted

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.

Posted

not quite following you there.

What do you want to do to the pages?

What do you want to do to the left column?

Posted

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.

Posted

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?

Posted

i have looked around but havent been able to find anything, thats why i posted. i have been reading the forums over here for like two days trying to find anything.

Posted

i just went through the contribs again and i dont see anything that will work for my needs. drats! anyone have any suggestions on how to remove the subcategories from categories.php?

  • 11 months later...
Posted

Hello

 

friends did got the solution for this prob?

if so pls let me know how did u make it.

 

thanks in advance,

 

regards,

 

Prab

  • 1 year later...
Posted
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;
   }

  • 1 month later...
Posted
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!!!

  • 1 year later...
Posted

Excellent, been looking for this.

 

Thanks

  • 5 weeks later...
Posted

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.

Archived

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

×
×
  • Create New...