Skip to content

Configurable attribute options are not sorted #7441

Closed
@mcjwsk

Description

@mcjwsk

Configurable attribute options are not sorted on the product page.

Preconditions

  1. Magento CE 2.1.2

Steps to reproduce

  1. Create a configurable attribute and add two options at least.
  2. Create a configurable product for these options.
  3. Go to the product page and see the configurable attribute select (options).
  4. Change attribute options sort order and flush all caches.
  5. Go to the product page and see the configurable attribute select (options) looks like before.

Expected result

  1. Configurable options HAVE been reordered.

Actual result

  1. Configurable options HAVE NOT been reordered.

The issue is related to the method ConfigurableAttributeData::getAttributeOptionsData() in the file app/code/Magento/ConfigurableProduct/Model/ConfigurableAttributeData.php.
I think you should load options sort order here and sort the output array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CatalogFixed 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.1.xThe issue has been reproduced on latest 2.1 releaseReproduced 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 releasebug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions