Skip to content

Sorting in Product Listing via Quantity not work #13556

@LordHansolo

Description

@LordHansolo

Preconditions

  1. Magento 2.2.2
  2. OS Ubuntu 16.04
  3. Server Apache version 2.4.18
  4. MySQL version 5.7.21
  5. PHP version 7.0.22

Steps to reproduce

  1. Set quantity_and_stock_status product attribute to be "Used for Sorting in Product Listing".
    sorting_via_quantity_admin
  2. Set different quantities for products.
  3. Go to Category Page on storefront and try sort via Quantity.

Expected result

  1. Product are sorted from the lowest to the highest quantity or from the highest to the lowest quantity.

Actual result

  1. Products are sorted via Position.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed 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