Jump to content

Hook for tickets only if client does not have services


Recommended Posts

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.

Link to comment
Share on other sites

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?

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