Skip to content

Instantly share code, notes, and snippets.

@dancameron
Created September 8, 2014 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dancameron/962c14a631aa43ea56b7 to your computer and use it in GitHub Desktop.
Save dancameron/962c14a631aa43ea56b7 to your computer and use it in GitHub Desktop.
EDD Recurring Payments & Discounts
<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