Jump to content

Admin Homepage - Open Invoices Widget - Client Name Linked


servetas

Recommended Posts

During the last weeks I have started experimenting with WHMCS. I have started searching over its files and do all the modifications I always wanted. From the beginning I wanted to be able to access the client's profile through the open invoices widget than just the invoice itself. I am sharing this customization with you.

 

Open modules/widgets/open_invoices.php and find line 37, it should look like this:

$content .= '<tr bgcolor="#ffffff" style="text-align:center;"><td><a href="invoices.php?action=edit&id='.$id.'">'.$invoicenum.'</a></td><td>'.$firstname.' '.$lastname.'</td><td>'.$date.'</td><td>'.$duedate.'</td><td>'.formatCurrency($total).'</td><td>'.$paymentmethod.'</td><td><a href="invoices.php?action=edit&id='.$id.'"><img src="images/edit.gif" border="0" /></a></td></tr>';

 

Replace it with this:

$content .= '<tr bgcolor="#ffffff" style="text-align:center;"><td><a href="invoices.php?action=edit&id='.$id.'">'.$invoicenum.'</a></td><td><a href="clientssummary.php?userid='.$userid.'">'.$firstname.' '.$lastname.'</a></td><td>'.$date.'</td><td>'.$duedate.'</td><td>'.formatCurrency($total).'</td><td>'.$paymentmethod.'</td><td><a href="invoices.php?action=edit&id='.$id.'"><img src="images/edit.gif" border="0" /></a></td></tr>';

 

I hope that it has not been shared in the past and it is helpful too... At least, it is for me.

 

Tested and works with WHMCS v6.2.1.

 

George

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