We have upgraded our Magento EE to

After upgrade, the Cart page and Checkout Page review step throws below-console error in IE.

decorateTable is undefined


I have found the issue and fix finally. Below are the details

We have faced some console errors and button click issues in our site after upgrading to These errors break place order functionality, toolbar options and compare links in the PLP page.

Console Errors:

'review' is not defined

'decorateTable' is not defined

'setLocation' is not defined

In this release, Magento fixed the button issue (button click not changing the state as expected) in Admin->System->Compilation->Tools->Compiler section. For this, they have added a new JS function called buttonDisabler() in


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

This function caused the issues in IE 11 Browser. The "<" operator which is used in this function is not supported in IE, which throws a syntax error and stops the next functions.

To Fix this, we have updated the function as below (replacing the "<" operator") in


function buttonDisabler() {
    const buttons = document.querySelectorAll('button.save');
    buttons.forEach(function(button) {
        button.disabled = true;
  • Please don’t forget to accept your answer.
    – pong
    Mar 5 '20 at 10:40
  • 1
    Thank you @pong. Done
    – Agnes
    Mar 6 '20 at 12:08
  • Great job. Thank you! @Agnes Jul 10 '20 at 14:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.