-
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
Visual swatches values not displayed in the right order in the filters #1503
Comments
Actually there seems to be the same problem on the category filter. Don't know if it's only "visual swatches and category" or just all filters though. Some of them are working just great! |
Hello @YannBergonzat, I've looked into it : the elasticsearch query is OK (aggregation uses the correct sort order) and the list of items come out ok in The issue with the visual swatches attributes is that the custom template It does not seem limited to Magento 2.3.x or even 2.2.x, I'll look into but it might have been there since the earliest Magento2/Elasticsuite versions, I'll check with @romainruaud. Regards, |
@androshchuk @serg6854 can you handle this one ? |
It seems to be fixed, indeed 🙌:tada: ! Thank you! |
Oops, my bad, I only checked the swatches! The category filter doesn't seem to be fixed. It has the same bug, as my comment states. Can you look into that please? @androshchuk @serg6854 @romainruaud |
Hello, @LilyBergonzat Could you please provide steps to reproduce this bug with category filter? Regards |
Hello @androshchuk The steps are almost the same, except at step 1, you set a category filter instead of a swatch: The values of the category filter won't respect the order defined in the attribute administration (for example: number of results). Magento Version : 2.3.2 Steps to reproduce
Expected result
Actual result
|
Hello @LilyBergonzat Unfortunately, I can't reproduce the issue, because I don't have attribute type "category filter" http://joxi.net/a2XGVDDIwX4ddm . I think you confused the subcategories with the filter (this is subcategory http://joxi.net/Q2KBn44CLDwpdm and they aren't sorted by Name or Result count). Sample data has an attribute that simulates categories (Category Gear), but it's really multiple select http://joxi.ru/bmo9oddh3B7RPA and it works fine http://joxi.net/p273811TKeN7B2 (by Name), http://joxi.ru/zANj044CvY1lkA (by Result count). Let me know if the issue is not resolved. Regards |
I think @LilyBergonzat is speaking about the This attribute is a bit special in Magento (it's a system attribute), and it's highly probable that when building the category filter we are not using the configuration that could exist in the a "legacy" filter, based on attributes (we do use the configuration like the category filter (it's also overriden in the Virtual Category module but the logic is the same, it's not based on an attribute so we never load any associated model) : https://github.com/Smile-SA/elasticsuite/blob/2.8.x/src/module-elasticsuite-catalog/Model/Layer/Filter/Category.php @LilyBergonzat is this the issue you are speaking about ? Can you create another ticket to handle this issue, so that it will be easier for us to track them as separate issue (since the problem related to the swatches is fixed). Regards |
It is, indeed! I will create another ticket, thank you :) ! |
When a filter is a visual swatch, its values won't respect the order defined in the attribute administration (for example: number of results).
Preconditions
Have an attribute being a visual swatch, with multiple values.
Have each of those values return a different amount of products.
Magento Version : 2.3.2
ElasticSuite Version : 2.8.1
Environment : Production
Third party modules : None (tested in a vanilla Magento, with just ElasticSuite enabled, and Luma theme)
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: