robbieaverill / magento-attribute-option-order-fix
Magento configurable attribute option order fix
Installs: 10 741
Dependents: 0
Suggesters: 0
Security: 0
Stars: 25
Watchers: 13
Forks: 7
Open Issues: 0
Type:magento-module
Requires
- php: >=5.4
- magento-hackathon/magento-composer-installer: ~3.0
README
Information
Magento patch
Please note: According to the bug report, Magento have scheduled a patch for this issue to be released (CE 1.9.3):
The issue is scheduled for next minor (not patch) release that is expected in H1 2016.
14/08/2015 4:02PM
When this patch is deployed, this module will be marked as deprecated. It will remain available for anyone who wants to use it in older versions of Magento (pre 1.9.3).
A module to re-apply the relevance ordering for configurable attribute options in Magento CE 1.9.1, 1.9.2 or EE 1.14.2.
Why? The logic was changed in the recent version of core Magento to avoid nested foreach
statements, but in turn lost the relevance ordering in favour of ordering by the attribute IDs.
You can use this extension module to restore to relevance ordering until the core resource model has been updated by Magento.
Installation
Install using composer
$ composer require robbieaverill/magento-attribute-option-order-fix
Install using modman
This is the preferred installation method, unless installing manually.
$ modman init
$ modman clone https://github.com/robbieaverill/magento-attribute-option-order-fix
Manual installation
- Clone this repository
- Copy the
app/code/local
files into your Magento codebase - Copy the
app/etc/modules/RobbieAverill_AttributeFix.xml
file into yourapp/etc/modules
folder - Clear your cache
Notes:
- Updated to work correctly on Magento CE 1.9.2
- Uses traits, so no longer supports PHP 5.3 or lower. Minimum 5.4 required.
Changelog:
1.1.4
- Added Packagist support. Updated composer PHP version requirement to 5.4.
1.1.3
- Fix #11 - prices cleared when creating simple products in admin
1.1.2
- Fix #12 - hot fix for empty attribute option arrays in the helper
1.1.1
- Fix #12 - added support for ordering swatch options
- Removed support for PHP 5.3 as we use traits now
1.0.1
- #10 - added
composer.json
for composer installation.
1.0.0
- Fix #9 - clash between keys and values (thanks @bincani)
0.1.3
- Added configuration unit tests
- Added Travis CI build configuration
0.1.2
- Updated docblocks and readme
- Return
self
instead of the full class name - Added
modman
config file (@ngongoll)
0.1.1
- Compatibility check against Magento CE 1.9.2
0.1.0
- Initial module added
- Use rewrite of configurable attribute collection model