-
Notifications
You must be signed in to change notification settings - Fork 340
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
Filter boolean seem to be not working on virtual category #2434
Comments
Hello @walkwizus Could you provide us more details (screenshots) about configuring your virtual category (condition for rule) and your boolean attribute? BR, |
Hello @vahonc, I've installed a Vanilla version of Magento CE 2.4.3-p1. I've added a boolean attribute. You can see how is configured the boolean attribute on the following screenshots: I've created two products, one with bool attribute set to false and another with bool attribute set to true. You can see my products on the following screenshots: So at this point, I've created a virtual category with a condition on my bool attribute. As you can see, if I choose "yes" value, there are only one product on the product list preview. If I choose the "no" value, there are two products on the product list preview. Here you can see all request in system.log file. Request when bool attribute is set to "Yes":
Request when bool attribute is set to "No":
On the first request there are the bool attribute with correct value: On the second request there are not the bool attribute: I can provide an hosted instance if necessary. Thanks |
Check if PR #1305 can have some effect for this one. |
@romainruaud Unfortunately doesn't work in my case. This PR break all virtual categories rules. |
Yes, this PR filters out a lot of things during indexation, I think that's a good path to explore but it definitely needs to be reworked. Regards |
Don't know if there an issue with the indexing process or an issue with the both, indexing process and categories rules. When I'm requesting with postman directly all work fine with true or false value so I assume all bool values are indexed properly. I've this issue only when I try to add a boolean attribute on my category rule. So I will try to change my attribute with a dropdown to have a rapid fix. thanks for your support ! |
Hello @walkwizus, Thanks for pointing the issue. BUT you will also need the 2.10.x version of #2482 to effectively have false/No values of Boolean attributes to be indexed (this was not the case by default). Regards, |
Fixes #2434 Support false/zero value in catalog rules
…ero_2.8.x Fixes #2434 Support false/zero value in catalog rules (2.8.x)
Hi ! @rbayet Thanks for fixed this issue. I can't patch it easily because the 2.10.X branch differ from 2.10.9.1 release. When the next released is planned ? |
Hi,
On a virtual category, filter with boolean value seem to be not working when value is false.
Magento Version : CE
ElasticSuite Version : 2.10.9
Environment : Development
Steps to reproduce
Expected result
Actual result
Thanks !
The text was updated successfully, but these errors were encountered: