Created
May 14, 2013 09:14
-
-
Save thorstenfriesen/5574702 to your computer and use it in GitHub Desktop.
Workaround to unbind the event listeners for the agreement checkboxes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$$('.checkout-agreements p.agree').each(function(item){ | |
var agreementsBlock = $(item); | |
if(agreementsBlock != undefined) { | |
agreementsBlock.replace('<p class="agree">' + agreementsBlock.innerHTML + '</p>'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, this was very helpful for older Magento versions. But please mind that this is not necessary any more and breaks the PayPal express checkout in Magento 1.9.1.