Closed davidhiendl closed 3 months ago
I can confirm this PR fixed the problem
@davidhiendl - Thank you for your fast reaction in solving this issue.
"Use in Layered Navigation" = USL "Use in Search Results Layered Navigation" = USRLN
Scenario 1 ULN = Filterable (with results) USRLN = No
For a word with results, all values with zero will not be displayed for the attribute, which is correct, because since they are zero, they no longer need to be displayed.
Scenario 2 ULN = Filterable (with results) USRLN = Yes
The same as before which is correct.
Scenario 3 ULN = Filterable (with results) USRLN = No
For a word with no results, there are no attributes displayed in the layering navigation, which is correct.
Scenario 4 ULN = Filterable (with results) USRLN = Yes
The same as before which is correct.
I'll let you decide if those changes proposed by @fbaliano are requested, Otherwise PR solves the problem reported by me.
since we have many instances of the same kind of typing in the main branch, I'll commit and merge those so that I can release 20.10 ;-)
Description (*)
Fix a regression introduced with the EAV overhaul where the filterable and filterable in search attribute options are not honored correctly.
Notes: For some reason the
Mage_CatalogSearch_Model_Layer::_prepareAttributeCollection
used to include ais_visible
condition but not the parent for regular catalog layered nav. I've reproduced this behavior in the interest of having a usable fix quickly but I think it might cause the other issues found during the debugging of #4055Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
See issue #4055