Jump to content

Quote for a hook to stop downgrades to hosting package that don't fit the users quota


Recommended Posts

I'm curious what it would cost to get a hook created that prevents a customer from downgrading a hosting plan to one that doesn't meet their current quota.

For example:

Customer currently has a hosting plan that allows for 30GB of storage and they're using 25GB of it. The customer tries to downgrade to a plan that only allows for 10GB of storage. When this happens, they won't be able to submit the downgrade order because their current storage is over quota.

WHMCS pointed me in this direction:

Using the ClientAreaPageUpgrade action hook point, you could potentially execute some custom PHP code to examine the usage of the client's service , creating a custom smarty variable with a boleen value, and then use some conditional logic in the upgrade.tpl to display a message in place of the {foreach $upgradeProducts as $key => $product} section.

For more developer information on Action Hooks, please refer to https://developers.whmcs.com/hooks/

Using v7.9.2 of WHMCS

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