View Issue Details

IDProjectCategoryView StatusLast Update
0005508OXID eShop (all versions)3.2. HTML, CSS, JavaScriptpublic2015-12-01 10:58
Reporterleofonic 
PriorityhighSeveritymajorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version4.6.6 revision 54646 
Target VersionFixed in Version 
Summary0005508: variant selection does not work in IE8
Descriptionoxajax.js produces an error in ie8 when selecting a variant.
Additional InformationPossible fix: in oxajax.js replace the line
keys.sort().forEach( function( i ) { aInputs[i] = inputs[i]; } )
with
for ( var i in keys.sort() ) { aInputs[keys[i]] = inputs[keys[i]]; }
TagsIE
ThemeAzure
BrowserInternet Explorer
PHP VersionNot defined
MySQL VersionNot defined

Relationships

has duplicate 0005733 closedjurate.baseviciene can't select variants in IE8 

Activities

FibreFoX

2013-11-07 15:45

reporter   ~0009249

I would propose by fixing javascript for that browser instead of making the js supporting more legacy:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach

leofonic

2013-11-07 16:45

reporter   ~0009251

Well OK but there is really no need to use forEach imho as there are a couple of alternatives.

gerldental

2014-01-29 23:02

reporter   ~0009455

This worked for me:

if ( !Array.prototype.forEach ) {
  Array.prototype.forEach = function(fn, scope) {
    for(var i = 0, len = this.length; i < len; ++i) {
      fn.call(scope, this[i], i, this);
    }
  }
}

Taken from:
http://stackoverflow.com/questions/14827406/javascript-foreach-function-does-not-work-in-ie