cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.9.4.4 has a checkout breaking JavaScript bug for IE11 users

Highlighted

Magento 1.9.4.4 has a checkout breaking JavaScript bug for IE11 users

Noticed after an upgrade IE11 users were getting an unhandled global error. In 1.9.4.4 a new function was added to js/varien/js.js called buttonDisable (only used by the Compilation page in admin). Unfortunately it uses arrow functions which IE11 doesn't like.

1 REPLY 1
Highlighted

Re: Magento 1.9.4.4 has a checkout breaking JavaScript bug for IE11 users

Hello @axeljose_axeljo 

 

on the file js/varien/js.js, at the bottom of it, you will find the following code:

function buttonDisabler() {
const buttons = document.querySelectorAll('button.save');
buttons.forEach(button => button.disabled = true);
}

the code uses ES6 syntax, which IE does not support.

 

change it to:

function buttonDisabler() {
const buttons = document.querySelectorAll('button.save');
buttons.forEach(function(button) {button.disabled = true;});
}

 

for better compatibility.

 

hope it will help you

 

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer