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

"%1 is the only product matching your '%2' research." displays with a delay of one page load #426

Closed
TiEul opened this issue May 19, 2017 · 3 comments

Comments

@TiEul
Copy link

TiEul commented May 19, 2017

There's an observer that is triggered when only one product has been found which displays the message "%1 is the only product matching your '%2' research.", however, we have been experiencing the problem that it displays one page load too late.

Preconditions

Magento Version :
2.1.6 EE

Environment :
Acceptance (Production-like)

Steps to reproduce

  1. Search using first search term of which you know it only returns one product result
  2. Search using second search term of which you know it only returns one product result
  3. Search using third search term of which you know it only returns one product result

Expected result

  1. "Product01 is the only product matching your 'Product01' research."
  2. "Product02 is the only product matching your 'Product02' research."
  3. "Product03 is the only product matching your 'Product03' research."

Actual result

  1. No message is shown
  2. "Product01 is the only product matching your 'Product01' research."
  3. "Product02 is the only product matching your 'Product02' research."

PS: The text should also have the term "research" changed to "search", probably was a slip-up when translating it from the French "recherche".

@maxinacube
Copy link

I'm also experiencing this bug with Magento 2.1.7 EE in developer mode, running version 2.3.0 of ElasticSuite.

@maxinacube
Copy link

Also worth noting that turning off "Redirect to product page if only one result" will prevent the page message from ever displaying - not ideal as it's a good feature, but the easiest temporary work around for the bug.

The setting can be found in the Magento admin through Stores > Configuration > Smile ElasticSuite > Catalog Search

@afoucret
Copy link
Contributor

PR merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants