Skip to content

Unable to sort catalog by Custom Attribute of type Dropdown #35920

Closed
@gwharton

Description

@gwharton

Preconditions and environment

  • 2.4.5
  • Sample data

Steps to reproduce

To test this, we will create a test attribute and assign values to the products in the sample data category "Bag", and then attempt to sort by the test attribute.

- Stores -> Attributes -> Product
 - Add New Attribute
  - Properties Tab
   - Default Label = test
   - Catalog Input Type for Store Owner = Dropdown
   - Add Option "first"
   - Add Option "second"
   - Add Option "third"
   - Add Option "fouth"

image

  - Storefront Properties Tab
   - Used for sorting in product listing = Yes
  - Leave all other options as default
 - Save Attribute
- Stores >Attributes -> Attribute Set
 - Select Bag
 - Drag test attribute into Product Details group
- Save
- Catalog -> Products -> Add filter to only show products in Attribute Set "Bag"
- Configure the following products to have test attribute values
  • Joust 24-MB01 - fourth
  • Fusion 24-MB02 - third
  • Crown Summit 24-MB03 - second
  • Strive 24-MB04 - first
  • Wayfarer 24-MB05 - fourth
  • Rival Field 24-MB06 - third

To make testing easier, remove all other products that have attribute set of "Bag" to leave only the above 6 items in the filtered view.

image

- Clear cache
- Go to frontend and browse to the Bag category.
- Sort by test

Expected result

The products should be ordered by test attribute. (Attribute value in brackets)

  1. Strive (first)
  2. Crown Summit (second)
  3. Fusion (third)
  4. Rival Field (third)
  5. Joust (fourth)
  6. Wayfarer (fourth)

Actual result

image

Additional information

No response

Release note

Products can now be sorted on the Product Listing pages by custom attribute of Dropdown type.

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: CatalogIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: doneReported on 2.4.5Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions