Modal affiliate payment does not work – error on validatePayoutForm
-
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;
}
- The topic ‘Modal affiliate payment does not work – error on validatePayoutForm’ is closed to new replies.