Skip to content

Instantly share code, notes, and snippets.

@thorstenfriesen
Created May 14, 2013 09:14
Show Gist options
  • Save thorstenfriesen/5574702 to your computer and use it in GitHub Desktop.
Save thorstenfriesen/5574702 to your computer and use it in GitHub Desktop.
Workaround to unbind the event listeners for the agreement checkboxes
$$('.checkout-agreements p.agree').each(function(item){
var agreementsBlock = $(item);
if(agreementsBlock != undefined) {
agreementsBlock.replace('<p class="agree">' + agreementsBlock.innerHTML + '</p>');
}
});
@sprankhub
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment