Portal Home > Knowledgebase > API > How do I display my remaining domain credits on my WHMCS Admin area home page?


How do I display my remaining domain credits on my WHMCS Admin area home page?




You can display your remaining domain credits on your WHMCS Admin area home page by adding the following code into /whmcs/admin/templates/v4/homepage.tpl:

{php}
$url = "https://www.magdesign.co.uk/clients/interface.php?command=getCredits&user=username&pw=password";
$xml = simplexml_load_file($url);
$result_msg = $xml->response->result->msg;
echo "Domain Credits Remaining: ".$result_msg;
{/php}



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read

Powered by WHMCompleteSolution