In WHMCS 8.0, a new User and Account system was introduced which has caused a lot of headaches for web hosting support team members and customers.
As a result of this change, there are two places that a user can update their email address:
- the Account Profile, which doesn’t change the email address they use to login, but does change where invoices are sent.
- their User Profile, which changes the email address they need to use to login, but doesn’t change where invoices are sent.
As you can imagine, the average customer doesn’t know this and would expect that when they update their email address in one location, it’s updated in both – which causes occasional tickets when user’s update their account email but can’t login with the new email address, or update their user email but the invoices are still sent to the old account email address.
There are threads about this on the WHMCS forum, without a real resolution from WHMCS other than to suggest that it could be built using hooks on the UserEdit and ClientEdit actions.
So, I built that hook. It took me about 15 minutes to write it in total.
You can download it for free from Github and upload it to the /includes/hooks/ folder on your WHMCS install.