cancel
Showing results for 
Search instead for 
Did you mean: 

All Categories are not showing up in Category Layered Navigation

All Categories are not showing up in Category Layered Navigation

I have used M1 for years. Im setting up M2 right now. I only put two products on the site to test. Both products are assigned to multiple categories. 

 

The odd thing is that when i view the main category page, the "category" layered navigation only lists categories that are 'not shared' by the two products.

 

For example, If:

Product 1 is set to category A, category B, category C.

Product 2 is set to category A, category B.

THEN,

Only category C will be listed in the "category layered navigation"

- Why wouldn't it list category A and B also?

 

This only happens with the category layered navigation, because I created other attributes (style, front closure, gender, etc) and those all display properly. 

 

Thanks for any help.  

I'm using Magento 2.3.2 new install. default theme. did not edit any files. i did refresh cache

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

See below screenshot for more details. the category LN shows only 2 categories, yet there are 4 more categories that should show up because both of these products are in teh other 4 categories.  

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

z-category-issue.jpg

4 REPLIES 4

Re: All Categories are not showing up in Category Layered Navigation

Check you category property once on admin category edit page.

Hi mr_hayata,

Make sure that “Is Anchor”=>True

And if flat category is enabled then reindex once.

I hope it will help you!!

Re: All Categories are not showing up in Category Layered Navigation

I think becuase there is no difference between them:

 

Try change temporary to:

Product 1 : cat 1 , cat b , cat c

Product 2 : cat a  (remove b)

 

This happen when You have products that are in cat a and b so there is no point to filter them, if they are the same.

Re: All Categories are not showing up in Category Layered Navigation

Thanks for the replies.

I don't know what "flat category" is, but i have re-indexed.

 

<<<This happen when You have products that are in cat a and b so there is no point to filter them, if they are the same.>>>

 

Oh ok I didn't even think of it like that. I was thinking of it more like it was a category navigation.  I didn't think that through.  lol sorry.  

 

Is there an option/way to have it display all categories that are available (for the products that are shown)? so for example, if someone was on my category page, "motorcycle vests"; it could display all categories that make up those products:   mens vests,  womens vests, etc.  

 

Re: All Categories are not showing up in Category Layered Navigation

Actually, i'm thinking that might not be the answer because when i look at my site thats on Magento 1, it shows all available categories for the products displayed...   see below snapshot of M1 site.    Yet on M2, it wont display all categories..  does anyone else experience this?  or does M2 change this particular feature?  but all other attributes work normally on the filtered list

 

Magento 1 displays all available categoriesMagento 1 displays all available categories