URGENT: Users are able to get 2x the amount when clicking “Redeem coupon”2020-06-04T08:56:19+05:30

Home Forums WooWallet Coupons URGENT: Users are able to get 2x the amount when clicking “Redeem coupon”

Viewing 1 post (of 1 total)
  • Author
    Posts
  • albadrtw
    Participant
    Post count: 2

    This is very serious issue. Users are able to get 2x amount by clicking the redeem coupon button twice. Even if coupon is set to 1/1 usage.

    This simple jquery in front-end file solved the issue

    jQuery(function() {
    $(“form”).submit(function() {
    // submit more than once return false
    $(this).submit(function() {
    return false;
    });
    // submit once return true
    return true;
    });
    });

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.