Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter smejia11

    (@smejia11)

    Hi there, it seems like the new version of WP Invoice is not allowing any partial payments. It’s not allowing my customers to use minimum payment or other. I’ve tried this plugin with different themes as well as deactivated all other plugins to make sure there are no compatibility issues. There is definitely something wrong with the new version you guys updated 3 days ago.

    There is an error that is preventing partial payments working in the js script tag code in this file:

    wp-invoice/lib/class_template_functions.php

    The current code from lines 397-401 is as follows:

                my_amount.on("touchleave", function(){
                  var new_value = my_amount.val();
                  payment_amount.val( validate_amount( new_value ) );
                  set_pay_button_value();
                }

    The above is missing a closing round bracket on the last line, see below:

    my_amount.on("touchleave", function(){
                  var new_value = my_amount.val();
                  payment_amount.val( validate_amount( new_value ) );
                  set_pay_button_value();
                })

    Adding this closing bracket fixes the issue.

    I haven’t notified the developers about this issue as they don’t seem to have any way to contact them without requesting a quote for custom work. Hopefully they will pick up on it here.

    Thread Starter smejia11

    (@smejia11)

    Ian,
    you are a lifesaver buddy! It worked! Thank you, I was already looking for alternative plugins.

    Hi smejia11,

    You are most welcome. It’s just a shame that you only got an answer because the same error started occurring on my client’s website. We don’t know how long this was an issue and only noticed it when a customer notified us of the problem.

    I am also considering moving to a different plugin as the support for this one seems to be non-existent. Such a simple fix yet the plugin developers don’t even seem to know there is a bug in their plugin.

    Cheers, Ian

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Partial Payments Not Working’ is closed to new replies.