-
Notifications
You must be signed in to change notification settings - Fork 347
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
Filters in frontend disappear when you add a sequence to Smile_ElasticsuiteCatalog in a module #886
Comments
I agree, and we are knowing this one for a while already. But we cannot add a sequence to For now the solution is to ensure the process module sequence is generated (or generate it by yourself) in the Regards |
Thank you for your answer. We decided to simply add the sequence needed on every module that needs a sequence towards Smile_ElasticsuiteCatalog I was also wondering something : is there any example on how to use function scores ? I can't seem to find any in the wiki, nor in the code, even though it seems like you've implemented some classes that handle it. Basically, I would need to be able to use function scores for something similar to this Thank you for your time |
Hi @Tokipudi, I close since you have found a workaround and there is no way for us to prevent this to append. I will check if it is possible to have propose something to Magento ... |
Reopen since it seems that we can add a non existing module into the module sequence definition without breaking anything. Dependency check is done using composer. We should be able to add the Magento_LayeredNavigationStaging into the Smile_ElasticsuiteCatalog sequence without breaking community edition. Note: it is an hack. Maybe Magento will change this behavior one day. |
PR have been merged and will be part of the 2.5.9 upcoming maintenance release. |
Preconditions
Magento Version : EE 2.2.2
ElasticSuite Version : 2.5.8
Environment : Developer
Steps to reproduce
Expected result
The new module works properly
Actual result
The filters in the frontend, on the category page, disappear.
What is causing the issue
It is caused by the fact that Smile_ElasticsuiteCatalog gets loaded before Magento_LayeredNavigationStaging. This is due to the fact that Smile_ElasticsuiteCatalog has a sequence to Magento_LayeredNavigation, instead of Magento_LayeredNavigationStaging.
Smile_ElasticsuiteCatalog has a virtualType that requires Magento_LayeredNavigationStaging to be loaded first for it to work :
You can find it in
frontend/etc/di.xml
How to solve the issue
Simply change the line
<module name="Magento_LayeredNavigation" />
inSmile\ElasticsuiteCatalog\etc\module.xml
by<module name="Magento_LayeredNavigationStaging" />
, so that Magento_LayeredNavigationStaging, which also loads Magento_LayeredNavigation is always loaded before Smile_ElasticsuiteCatalog.The text was updated successfully, but these errors were encountered: