Magento Issue: Unable to sort configurable product attribute drop down options

<Keithblog />

Having encountered this issue a couple of times I though it was time to make a note. This is a fix for an issue in Magento 1.9 whereby the order specified for option attributes in the admin panel are not being applied on the front end.

Jonathon Byrd at Merchant Protocol has published this fix which overrides the core Configurable Attribute Collection class with an updated one which properly sorts the attribute options by the sort value in the Admin panel.

ยป [Solved] Sort Configurable Product Attribute Options and Dropdowns

Jonathon’s fix works perfectly. I’ve implemented it alongside a simple product pricing module for configurable products also without issue.


Related posts on

Ordering assets in Magento 2

Magento Code: Innoexts Currency Pricing Module Price and Special Price Import via SSH

PHP: glob

Magento Code: Check an import directory for new product CSVs and process using a Magmi profile

Magento: What are Sage Pay Orphan Transactions?

PHP: header

PHP: str_replace

Magento Code: Include currency switcher in the header or footer with Foundation mark-up

Magento Code: Add a drop down attribute and display it on the product page in custom HTML