Skip to content
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

Search terms - products are not sorting manually on the frontend #2305

Closed
KCzaplinskaAcc opened this issue Oct 19, 2021 · 8 comments
Closed
Assignees

Comments

@KCzaplinskaAcc
Copy link

Preconditions

Magento Version : 2.4.2-p2

ElasticSuite Version : 2.10.6

Environment: developer and production mode

Third party modules: our custom modules

Steps to reproduce

  1. Go in Admin Panel to "Marketing -> Search Terms"
  2. Add search term.
  3. Go to "Merchandiser" tab.
  4. Sort some of the products manually.
  5. Go to the frontend and type this search term in the search input.

Expected result

  1. The products for that search term should be displayed as we sorted them. The manual sort should be applied.

Actual result

Manual sort is not applied.
Products are displaying randomly. The product I want to be first is not.

Additional information

We found out that one line was removed in this PR, which is (probably) causing this issue but it is in magento module - magento/magento2#27263

After adding this line: " $this->addToolbarBlock($collection); " the sorting products by manual sort are working, and for now it is our workaround for that.

@vahonc
Copy link
Collaborator

vahonc commented Oct 20, 2021

Hello @kczaplinska,

Unfortunately, I was not able to reproduce your issue. I've tried to check it on my three test environments with fresh Magento EE 2.4.2 & ES 2.10.7, Magento EE 2.4.2-p2 & ES 2.10.6, Magento EE 2.4.3 & ES 2.10.6. In all test cases, I have the same result, manual sorting for selected products was applied on the frontend as expected.

You can see it in my screenshot below:

  1. Admin Panel -> Marketing -> Search Terms -> Add a new search term:

m2-search-terms-hoodie-config

  1. Merchandiser tab -> Sort some of the products manually:

m2-search-terms-hoodie-merchandiser-tab-manual-sort

  1. Go to the frontend and type my search term in the search input:

m2-search-results-hoodie-front

So my guess is that maybe your custom modules can somehow affect your problem, or maybe you are using a custom design theme that can also affect it. In my tests, I used a default Magento theme like Luma.

BR,
Vadym

@no-response
Copy link

no-response bot commented Nov 4, 2021

This issue was waiting update from the author for too long.
Without any update, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.

@no-response no-response bot closed this as completed Nov 4, 2021
@romainruaud romainruaud reopened this Nov 4, 2021
@romainruaud
Copy link
Collaborator

I think @rbayet is investigating this one. I reopen.

@no-response
Copy link

no-response bot commented Nov 4, 2021

This issue was waiting update from the author for too long.
Without any update, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.

@romainruaud
Copy link
Collaborator

I do not reproduce this one either with the said versions.

We'll need more details to investigate.

Are you using a custom theme ?

@KCzaplinskaAcc
Copy link
Author

Hi @romainruaud
Yes indeed, we are using a custom theme, but the functionality is working on Magento 2.3 but not after upgrading our project to Magento 2.4.2-p2.

@vahonc
Copy link
Collaborator

vahonc commented Jan 17, 2022

Hello @kczaplinska,

Could you provide screenshots from your website (frontend/backend) as I pasted in my comment?

Also, maybe after migration, there are some issues that are linked to the database, you should check if all tables and columns are properly created.

BR,
Vadym

@no-response
Copy link

no-response bot commented Feb 1, 2022

This issue was waiting update from the author for too long.
Without any update, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.

@no-response no-response bot closed this as completed Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants