Jump to content
Thumper

Hook for invoices to be displayed on dashboard

Recommended Posts

I have been trying to use hooks in v8.1 to have the customers invoices appear in their dashboard.  I had this back in V6 and have recently decided to upgrade however my hooks no longer work, any idea?

lagom_whmcs_integration-sydanic.6f69c7f.

Share this post


Link to post
Share on other sites
On 10/01/2021 at 09:59, Thumper said:

I have been trying to use hooks in v8.1 to have the customers invoices appear in their dashboard.  I had this back in V6 and have recently decided to upgrade however my hooks no longer work, any idea?

it would have been helpful to see the hook - possibly it's just using a deprecated way of querying the database before creating the array?

the client homepage has access to an invoices array by default, but I think only unpaid invoices - so if you needed to show paid/all etc invoices, you'd probably still need to generate a custom array.

also, you need is a method to loop through the array and output it in a table... possibly your hook does/did that, but you could certainly edit the template to add such a table... e.g copying the code from clientareainvoices, with one little tweak of changing invoice.status to invoice.statustext would output the table on the homepage.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated