Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hide Categories


Irvin

Recommended Posts

Hi, I'd like to hide the main/parent categories which are not currently active (i.e. being viewed by the user).

 

So let's say we have 3 MAIN categories:

 

1. Main Category 1

2. Main Category 2

3. Main Category 3

 

And then when I click on the 'Main Category 1', the 'Main Category 2' and 'Main Category 3' will be hidden.

 

I know that the file that should be altered is the 'categories.php' in the /includes/boxes' folder.

 

Could someone help please?

Link to comment
Share on other sites

What happens when you are browsing Main Category 1 and you think; I'll just have a look at Main Category 2 now - as soon as I remember where the hell I hid it! >_<

Hi, I understand what you're saying, but the category menus will be displayed on the left column as usual (default setting), and I will also put the category menu on the header as TOP MENUS and these TOP menus will be static (i.e. manually created).

 

So we'll have some layout like this....

 

------------------------------------------------------------------------

Main Category 1 Main Category 2 Main Category 3

 

 

Main Category 1

 

Main Category 2

 

Main Category 3

 

 

Could you help please spax?

Link to comment
Share on other sites

Could you help please spax?

 

Hi Irvin,

 

Sorry, I went to bed after my last post.

 

It is possible to do what you want but, I still don't understand why you would need to. You would end up with only a link to the page you are on, which seems pretty pointless. I guess I am missing the point completely. :rolleyes:

 

Do you mean, when you click Main Category 1, in the header, you would have something like:

 

Main Category 1 :: Main Category 1 Sub 1 :: Main Category 1 Sub 2 :: Main Category 1 Sub 3

 

or is it you want to do something like, have a different header image, for any given category?

 

Details, details! Let us have some more info and someone very clever will suggest something totally brilliant. Which rules me out. :huh:

Link to comment
Share on other sites

Hi Irvin,

 

Sorry, I went to bed after my last post.

 

It is possible to do what you want but, I still don't understand why you would need to. You would end up with only a link to the page you are on, which seems pretty pointless. I guess I am missing the point completely. :rolleyes:

 

Do you mean, when you click Main Category 1, in the header, you would have something like:

 

Main Category 1 :: Main Category 1 Sub 1 :: Main Category 1 Sub 2 :: Main Category 1 Sub 3

 

or is it you want to do something like, have a different header image, for any given category?

 

Details, details! Let us have some more info and someone very clever will suggest something totally brilliant. Which rules me out. :huh:

Hi Spax, hehe, that's why I waited so long yesterday but didn't get a quick reply from you. But that's fine.

 

Ok, I'll try my best again to describe what I'm after. Basically...

 

 

We are setting up a store with hundreds of categories...

If a customer clicks on a category that has subcategories, it would be great if there was a way to hide the other parent categories, with maybe a link like "return to top", to get back up?

 

For example, let's say this is how our entire tree looked like if mapped out:

 

-Parent Category A

-Subcategory 1

-Subcategory 2

-Subcategory 3

-Parent Category B

-Parent Category C

 

And we have these parent categories on the header of the website as well in horizontal format, so we have these menus on the left column and on the header.

The parent categories are not driven from the database / manually created. So the parent categories menu on the header part always show up.

But not with the parent categories on the left column. And we're only trying to modify the left column here (which is the file called categories.php in the '/includes/boxes' folder.

 

I would now like to find a way to -when a customer clicks on "Category A" on the header - to have it go into Parent Category A, and hide B and C, and the left column show the following:

 

-Parent Category A

-Subcategory 1

-Subcategory 2

-Subcategory 3

 

 

Hopefully this time it makes more sense >_<

Please helppp all oscommerce savvy people out there

Link to comment
Share on other sites

  • 4 months later...

Archived

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

×
×
  • Create New...