GithubHelp home page GithubHelp logo

00mjk / magento-attribute-option-order-fix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robbieaverill/magento-attribute-option-order-fix

0.0 0.0 0.0 41 KB

A module to re-apply the relevance order for configurable attribute options in Magento CE 1.9.1 or EE 1.14.2

PHP 100.00%

magento-attribute-option-order-fix's Introduction

Magento configurable product attribute order fix

Build Status Packagist

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 your app/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

magento-attribute-option-order-fix's People

Contributors

bincani avatar ngongoll avatar robbieaverill avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.