Hi!
I'm learning Magento, but I'm struggling with something. I'm adding products with product attributes, but when I'm filtering the attributes on the category page it won't show results. It says that there is 1 product in for example the color red, but when I filter it, it says there are no results.
Proof:
I hope someone can help me with this problem! I'm struggling with it for a few hours, but I really can't find a solution.
PS: Sorry for my bad English. Not very good at it
Hi,
First you need to create the right kind of filterable attribute and then it also need to be anchor in category page.
How do you anchor it in the category page?
You can do it from category management section.
It look like you have to run indexing.
Follow bellow steps
1. Go to your root folder of your magento2 installation directory
2. Execute below command to run the indexing
php bin/magento index:reindex
Output
Design Config Grid index has been rebuilt successfully in 00:00:00 Customer Grid index has been rebuilt successfully in 00:00:00 Category Products index has been rebuilt successfully in 00:00:00 Product Categories index has been rebuilt successfully in 00:00:00 Product Price index has been rebuilt successfully in 00:00:03 Product EAV index has been rebuilt successfully in 00:00:02 Catalog Search index has been rebuilt successfully in 00:00:02 Stock index has been rebuilt successfully in 00:00:00 Catalog Rule Product index has been rebuilt successfully in 00:00:02 Catalog Product Rule index has been rebuilt successfully in 00:00:00
if issue solved, Click Kudos/Accept as solutions.
Facing same issue, did everything but didn't found any solution yet.
If anyone could help. I should be thankful to you.
Hi,
Are the attributes configured correctly, so they are suitable for layered navigation. Go to Stores>Attributes>Product. Find your attribute which should work in the Layered navigation select it and set the value "Use in Layered Navigation" to "Filterable (with results)" There is also an option to enable the attribute as a filter on the search results page.