Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed regression introduced in #2993 where attributes are not correctly pre-filtered for the layered navigation #4063

Merged

Conversation

davidhiendl
Copy link
Contributor

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 a is_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 #4055

Related Pull Requests

Fixed Issues (if relevant)

Manual testing scenarios (*)

See issue #4055

@github-actions github-actions bot added Component: Catalog Relates to Mage_Catalog Component: CatalogSearch Relates to Mage_CatalogSearch labels Jul 1, 2024
…orrectly pre-filtered for the layered navigation
@davidhiendl davidhiendl force-pushed the fix-filterable-attribute-layerednav branch from f3d9ed2 to f2cde8f Compare July 1, 2024 10:22
@fballiano
Copy link
Contributor

I can confirm this PR fixed the problem

@addison74
Copy link
Contributor

@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.

@fballiano fballiano changed the title fix regression introduced in #2993 where attributes are not correctly pre-filtered for the layered navigation Fixed regression introduced in #2993 where attributes are not correctly pre-filtered for the layered navigation Jul 2, 2024
@fballiano
Copy link
Contributor

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 ;-)

@fballiano fballiano merged commit 3da8c6e into OpenMage:main Jul 2, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Catalog Relates to Mage_Catalog Component: CatalogSearch Relates to Mage_CatalogSearch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

All attributes set to be used for search appear in layering navigation when there are no search results
3 participants