-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Layered Navigation: “Equalize product count” not working as expected #21968
Conversation
Hi @Nazar65. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @dmytro-ch why on hold ? |
Hi @Nazar65, However, the solution is a bit weird. Why do we really need the ternary operator with both equal parts?
What is the possible case? |
@dmytro-ch ok, let me explain , we have 2 products with values 45 and 145, so condition looks like we have 2 ranges from * to 100 and from 100 to * in this piece of code
|
Hi @dmytro-ch, thank you for the review. |
✔️ QA Passed |
Hi @Nazar65, thank you for your contribution! |
Description (*)
Create a custom attribute of type price.
Got to Stores > Configuration > Catalog > Layered Navigation and set “price navigation step calculation” to “Automatic (equalize product counts)”
issue comes from -> #6715
where Someone says that "Both parts of ternary operators are equals."
I would expect ten ranges with equalized product counts (as the name suggests).
Fixed Issues (if relevant)
Manual testing scenarios (*)
Create a custom attribute of type price.
Got to Stores > Configuration > Catalog > Layered Navigation and set “price navigation step calculation” to “Automatic (equalize product counts)”
Contribution checklist (*)