Last active
July 14, 2020 22:01
-
-
Save Magnacarter/26fe9de2862846eb293d90ef739db9b6 to your computer and use it in GitHub Desktop.
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"> | |
document.addEventListener("DOMContentLoaded", function() { | |
// Discount sidebar disclaimer on subscriptions. | |
var discountDiv = document.querySelector('#discount_inactive'), | |
child = document.createElement('div'); | |
child.innerHTML = `<p style="padding-top:10px;">Good news, you’re earning rewards for you order. Unfortunately, due to software limitations, rewards can’t be redeemed for orders with subscriptions. If you’d like to use rewards towards a purchase, please make sure to not have any Subscribe & Save products in your cart.</p>`; | |
discountDiv.appendChild(child); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment