WordPress.org

Ready to get started?Download WordPress

Forums

WP-Invoice - Web Invoice and Billing
How do I display total balance? (5 posts)

  1. itsbc
    Member
    Posted 6 months ago #

    I just installed wp-invoice and so far it looks promising. One of the problems I've run into, however, is I'm trying to display the total balance due for the currently logged in user. One of the things I tried, was including the wpi_template_functions.php in my themes functions.php and then called the balance_due(); in my header, but I am only able to get a dollar sign ($) returned. No value or amount.

    Any ideas on how to make this work?

    Also, I was wondering if there was a way to check if a user has a new or unpaid invoice and leave a notification icon for them to see?

    Thanks in advance for the help, Bc.

    https://wordpress.org/plugins/wp-invoice/

  2. itsbc
    Member
    Posted 6 months ago #

    I assumed it was understood when I mentioned placing it in my header, but just to be a little more clear, I'm trying to use balance_due(); outside of the plugin folder and in my child template folder instead.

  3. Anton Korotkoff
    WP-Invoice Support
    Plugin Contributor

    Posted 6 months ago #

    Hey @itsbc,

    balance_due(); function works only on specific invoice page. It does nothing in other places.

    Thanks.

  4. itsbc
    Member
    Posted 6 months ago #

    Is there any way to pull that number outside of invoice.php? I'd like to be able to get the sum of all of the invoices and display that on the homepage for clients.

  5. Anton Korotkoff
    WP-Invoice Support
    Plugin Contributor

    Posted 6 months ago #

    That requires custom implementation. There is no such ability in current version.

Reply

You must log in to post.

About this Plugin

About this Topic