Skip to content

Sort by Product Name doesn't work with Ancor and available filters #12860

@ihor-sviziev

Description

@ihor-sviziev

On the category page when we have filters (as example - we need to define color for products) + "Ancor" is enabled for category - sorting by product name doesn't work correct.

Preconditions

  1. Install Magento 2.2.2
  2. Create "test" category
  3. Create 3 products and add them to "test" category
  • Product A (color attribute set to "red")
  • Product B (color attribute set to "blue")
  • Cool Product C (color attribute set to "red")
  1. For "test" category in "Design" section change "Layout" to "1 column", save category
  2. For "test" category in "Design" section change "Layout Update XML" to "<referenceContainer name="main.content" htmlClass="page-main products-grid--max-4-col"/>", save category

Steps to reproduce

  1. Go to frontend >> Test category
  2. Change "Sort" to "Product Name"

Expected result

  1. Products should be sorder by name (when ancor disabled - it works good)
    image
    image

Actual result

  1. Products are not sorted by name (product B should be 3rd, but it is second) image
  2. Sorting by desc also doesn't work:
    image

We hadn't this issue in Magento 2.1.x, it appeared during upgrade to 2.2, so probably it's regression.

Video where I was able to reproduce it: https://photos.app.goo.gl/tfRvSIcYYNN90jUB2

Metadata

Metadata

Assignees

Labels

Fixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions