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

Posted in Magento on 3 January 2017

This post has been archived

The content of this post has not been updated since 2017, and may be out of date. Extra care should be taken with any code provided.

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 Magento Posts

October 2023

Magento database structure

The database structure of Magento is designed to store and manage various aspects of an e-commerce website, including products, orders, customers, and more. Understanding the...

Continue reading

August 2023

Accessibility in ecommerce websites

In the digital age, where online shopping has become an integral part of our lives, ecommerce websites hold the key to business success. Amidst the...

Continue reading

August 2023

Using Magento to get small businesses online

For small businesses aiming to establish a formidable online presence and drive sales, Magento emerges as a powerful e-commerce platform offering a suite of features...

Continue reading

More Magento Posts