Feature Requests
Share ideas, discuss and vote on requests from other users in community
 

Domain alerts hook point

David Cassidy shared this idea 10 months ago
Under Consideration

In the latest version of WHMCS, I can see the below in the clientareadomaindetails.tpl file.

{if $alerts}

{foreach $alerts as $alert}

{include file="$template/includes/alert.tpl" type=$alert.type msg="<strong>{$alert.title}</strong><br>{$alert.description}" textcenter=true}

{/foreach}

{/if}

I would like the ability to push alert objects into the alerts array, preferably from a hook. A couple of reasons for requesting this are because I'd like to have an alert display if a .uk domain is pending transfer so that a message can easily be displayed to tell the client to change their IPS Tag. Another reason was to display an alert if a domain is locked telling the client to unlock their domain before trying to make changes to it.

I know I can do this with smarty in the tpl file (which is what I am currently doing), but having a hook push alerts to the array would make upgrading much easier.