Created
September 8, 2014 22:33
-
-
Save dancameron/962c14a631aa43ea56b7 to your computer and use it in GitHub Desktop.
EDD Recurring Payments & Discounts
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
<script type="text/javascript" charset="utf-8"> | |
jQuery( 'body' ).on({ | |
edd_discount_applied: function() { | |
window.location.reload(); | |
jQuery('.edd_cart_discount_row').hide(); | |
}, | |
edd_discount_removed: function() { | |
window.location.reload(); | |
jQuery('.edd_cart_amount').each(function() { | |
jQuery(this).text('...'); | |
}); | |
}, | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment