Sybille Posted June 12, 2016 Share Posted June 12, 2016 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 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 12, 2016 Share Posted June 12, 2016 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. 0 Quote Link to comment Share on other sites More sharing options...
Sybille Posted June 14, 2016 Author Share Posted June 14, 2016 It's more complicated as I thought, therefore I've to put it on the end of my To Do list. For this reason I will come back to this threat at a later date. However many thanks for your detailed explanation. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.