Closed
Description
Configurable attribute options are not sorted on the product page.
Preconditions
- Magento CE 2.1.2
Steps to reproduce
- Create a configurable attribute and add two options at least.
- Create a configurable product for these options.
- Go to the product page and see the configurable attribute select (options).
- Change attribute options sort order and flush all caches.
- Go to the product page and see the configurable attribute select (options) looks like before.
Expected result
- Configurable options HAVE been reordered.
Actual result
- 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
Labels
The issue has been fixed in 2.1 release lineThe issue has been fixed in 2.2 release lineThe issue has been fixed in 2.3 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release