• Is it possible to prevent NEGATIVE donations being added. Currently if someone buys form our shop they can add a negative figure in the Donation box and get a nice discount off the cart total which is not good at all!
    Jeremy

Viewing 1 replies (of 1 total)
  • Add the following script onto the cart page and it’ll prevent it from happening.

    <script>$('.wdgk_donation').keyup(function () {
        if (!this.value.match(/[0-9]/)) {
            this.value = this.value.replace(/[^0-9]/g, '');
        }
    });</script>
Viewing 1 replies (of 1 total)
  • The topic ‘Negative Donations’ is closed to new replies.