Jump to content

overview of the billing - client area


Sybille

Recommended Posts

Hi,

 

I would like to change the overview of the billing on the client area.

 

I would like to display it as followed:

- Due invoices: 3

- Due invoices amount: 300$

- Overdue invoices: 1

- Overdue amount: 20$

 

My code in the language file:

$_LANG['clientHomePanels']['overdueInvoicesMsg'] = "
Due invoices: :numberOfInvoices<br>
Due invoices amount: :balanceDue<br>
Overdue invoices: [b]???[/b]<br>
Due invoices amount: [b]???[/b]”

 

I really appreciate your help.

 

- - - Updated - - -

 

ScreenShot

ClientArea_Billing_Overview.png

Link to comment
Share on other sites

I don't think that you can do this just by a change in the language files...

 

the panel will show one of two messages...

 

1. if there are unpaid invoices, it will label the panel using the first entry and use the message of the second in the body...

 

$_LANG['clientHomePanels']['unpaidInvoices']
$_LANG['clientHomePanels']['unpaidInvoicesMsg']

 

2. if there are no unpaid invoices but overdue invoices, it will label the panel using the third entry and use the message of the fourth in the body...

 

$_LANG['clientHomePanels']['overdueInvoices']
$_LANG['clientHomePanels']['overdueInvoicesMsg']

 

3. if there are unpaid invoices AND overdue invoices - it displays the Unpaid invoices label and message.

 

it seems programmed to only show one (using 2 supplied variables - not all 4)... the hook that adds the panel to the homepage will be created in an encrypted file, therefore it cannot be edited and I have no idea of it's specific code... though logically I assume it must be using sprintf or similar technique.

 

the only way that I think you could do what you want would be to create an action hook that either a) deletes the existing panel and creates a new one that outputs the four variables you want to display... or b) you modify the label and body of the existing panel - either way, it's possible that you'd need to query the database to get the four variables that you need.

 

then if it needs to be multilingual, you could creating new language override entries or modifying the existing ones and use them.

Link to comment
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