DrewParkwood Posted May 11 Share Posted May 11 Hi Is there a hook to show only tickets when a client has no services on file? Thanks 0 Quote Link to comment Share on other sites More sharing options...
Suzen Posted May 16 Share Posted May 16 Hey @DrewParkwood In reality, when a client has no services on file in WHMCS, there is a way to display only tickets. To do this, you can use hooks to modify the client area's behavior according to the client's service state. If a customer does not have any active services, you can use WHMCS to construct a custom hook that will just show the support tickets section. Here's a basic strategy: Make a Custom Hook: To change the client area dashboard, utilise the ClientAreaPage hook. You can modify the output of any page in the client area with this hook. Check for Active Services: To find out if the client has any active services, use the hook to query the database. Change the presentation such that it just shows the tickets part if there are no active services found. Change the Template: To conditionally show the parts depending on the outcome from the hook, you may need to make changes to the client area template files. 0 Quote Link to comment Share on other sites More sharing options...
DrewParkwood Posted May 16 Author Share Posted May 16 8 hours ago, Suzen said: Hey @DrewParkwood In reality, when a client has no services on file in WHMCS, there is a way to display only tickets. To do this, you can use hooks to modify the client area's behavior according to the client's service state. If a customer does not have any active services, you can use WHMCS to construct a custom hook that will just show the support tickets section. Here's a basic strategy: Make a Custom Hook: To change the client area dashboard, utilise the ClientAreaPage hook. You can modify the output of any page in the client area with this hook. Check for Active Services: To find out if the client has any active services, use the hook to query the database. Change the presentation such that it just shows the tickets part if there are no active services found. Change the Template: To conditionally show the parts depending on the outcome from the hook, you may need to make changes to the client area template files. Hi, thank you. Is there a hook code that can hide all the features when a client does not have a service? 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.