• Resolved Alfio Piccione

    (@picaland)


    Hi,

    I found a bug in the plugin. in the file /html/admin/affiliate_detail.php the JS validatePayoutForm () function has problems.

    val is not an integer but a string then isNaN (val) always returns false, and in addition val takes a value with the “,” and not with the “.” does not handle values like: 14.00 / 14.50 etc … etc …
    This does not open the modal to apply the payment.

    I solved this way:
    val = parseFloat(val.replace(“,”, “.”));

    here is the whole function:

    function validatePayoutForm()
    {
    var val = jQuery(“#txtPayoutAmount”).val();

    val = parseFloat(val.replace(“,”, “.”));
    if (isNaN(val) || jQuery.trim(val).length == 0)
    {
    markLabelBad(‘txtPayoutAmount’);
    return false;
    }
    markLabelOk(‘txtPayoutAmount’);
    return true;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi, thank you for reporting this. I have submitted a message to the developers to investigate further your findings.

    Kind regards

    Plugin Author affmngr

    (@affmngr)

    @picaland, Thank you for reporting this. Can you please tell us how we can reproduce this issue?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Modal affiliate payment does not work – error on validatePayoutForm’ is closed to new replies.