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

Text based swatches returning incorrect results in layered navigation #1371

Closed
JamesAllwood opened this issue Apr 3, 2019 · 2 comments
Closed
Assignees
Labels

Comments

@JamesAllwood
Copy link

When using a text based swatch in the layered navigation, if a store contains values that all start with the same value followed by a space, selecting one of them, selects all of them, and the parameter in the URL only contains the first section.

For example, if I'm listing shoes, and have the values 13 and 13 Child available in my text swatch, clicking on the 13 Child in the layered navigation, also selects 13, and the results are incorrect.

Based on tests, this seems to be limited to text swatches only

Preconditions

Magento Version : 2.3.1

ElasticSuite Version : 2.76

Environment : Production mode

Third party modules : None

Steps to reproduce

  1. Create new text based attribute, and populate with the values 13 and 13 Child. Set the attribute to be available in the layered navigation
  2. Assign attribute to attribute set
  3. Create a new product and assign value 13
  4. Create a second new product and assign value 13 Child (ensure both products are assigned to the same category
  5. Visit the category on the frontend and filter for the value 13 Child

Expected result

  1. I see just the product that has been assigned the 13 Child attribute value

Actual result

  1. Both the 13 and 13 Child attributes are selected
  2. The parameter in the URL reflects only the value 13 rather than 13+Child
  3. The results show only the product that has the 13 value assigned to it, and not the 13 Child value

Before filter is applied:

image

After filter for 13 Child is applied:

image

@romainruaud
Copy link
Collaborator

Confirmed.

We'll try to address this one on next 2.7 minor.

Regards

@romainruaud
Copy link
Collaborator

Closed by associated PR, will be part of 2.6.9 and 2.7.7

Thank you for reporting it

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

No branches or pull requests

3 participants