-
Notifications
You must be signed in to change notification settings - Fork 341
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
Can't switch to descending mode #3441
Comments
Hello @ioweb-gr, I was not able to reproduce your issue according to your steps on the my test environment with the fresh Magento 2.4.7-p3 (default sample data and default Luma theme) and Elasticsuite 2.11.9.2. He're my screenshots: As you can see, if As for if Also, are you sure that this issue is not related to some cache or custom theme (in case if it's not based on the default Luma theme)? BR, |
I checked it out and indeed it was added with a plugin with this module. Caching is disabled However even disabling the module doesn't fix my situation. The theme is a child of Luma with some extra css and minimal modifications, nothing that affects the listing toolbar. I also tested with Luma and get the same, so something must be interfering with the sorting |
Let's put it on hold until I can pinpoint it better |
I managed to trace this to a GoogleTags module which is using When commenting out this function everything works
When it's added, the sort order is modified and unable to change. |
Can you specify where this code came from?
BR, |
It's coming from a module a developer of ours created to send the gtag event for page views in category listings It generates the following code for example, based on the currently viewed products
In default.xml it adds the following block which conditionally loads product ids in the page.
Then the block is rendered and to do that it invokes the function mentioned above
to retrieve the product ids from the currently viewed collection taking into account the sort / pagination settings from the toolbar. However unfortunately the plugin used to change the order via the smile elastic suite is actually executing after the block's code is executed thus there's a conflict between them. |
Fun fact, moving the block to |
Title: Descending Sort Order Doesn't Work on Categories in Elastic Suite
Preconditions
Steps to Reproduce
select * from catalog_category_entity_varchar where attribute_id = 221
For example
Checking the use config checkbox doens't help either.
Expected Result
Actual Result
System Info
Additional Notes
var/log
.The text was updated successfully, but these errors were encountered: