cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.1.8 Layered Navigation is not working while select Sub Category

Magento 2.1.8 Layered Navigation is not working while select Sub Category

Magento version: 2.1.8

Categories: Parent > Child

When I select the parent category in layered navigation. It works fine (See screenshot 1 & 2)
 
Screenshot 1Screenshot 1Screenshot 2Screenshot 2

After selecting the parent category, when I select a subcategory. It does not show the exact number of products. (See screenshot 3)
 
Screenshot 3Screenshot 3

I have seen that categories are added in proper way and Anchor selected to Yes.

I have searched on google but did not find any solution.

Please help, if you have any solution to this?

Thanks
3 REPLIES 3

Re: Magento 2.1.8 Layered Navigation is not working while select Sub Category

Hi Imran,

 

First thing first. I am unable to see the screenshots shared by you therefore I can't help you out exactly at your problem.

 

If you could re-share the screenshot will help me to understand the problem.

 

However from general preception of these type of errors, these raises when you don't set your effected category as "Anchor" in category menu.

 

This usually is set under categories design settings.

 

See here: https://monosnap.com/file/czjdCEHXbaQS5RREgtHlomzFW5cxwX

 

display_settings.png

Re: Magento 2.1.8 Layered Navigation is not working while select Sub Category

@OrviSoft I can see images, I don't know why images are not displaying to you.

 

I have seen that the anchor is already set to yes for the categories. I also reindexed.

 

See screenshot.

 

ncbv4buOMQ.png

Re: Magento 2.1.8 Layered Navigation is not working while select Sub Category

Can you confirm if you have any of the following is active?

 

1. Catalog Category Flat Data

2. Catalog Product Flat Data

3. Any indexing in pending state

 

If you have any of above 3, please try disabling/ re-indexing and share stats. If problem continues, than it should be investigated starting from view to block, block to controller and controller to model to see where if there is anything intercepting the behavior.