Jump to content

Auto-upgrade package when bandwidth/disk is exceeded?


iHelpersLLC

Recommended Posts

We would like to automatically upgrade clients to a bigger package when their current bandwidth/disk quotas are exceeded (or get close) .. This seems to be a better option than suspending them.

So far I can see no way to configure this to happen either automatically or even semi-automatically.

 

Is this possible? Any modules that can do this (i have not found anything) ?

Link to comment
Share on other sites

It's possible but you would need to write a custom php hook to do this. What you would need is a DailyCronJob hook script which would get triggered after the main cron job is ran which updates the disk and bandwidth usage. Then you would query the database looking for services that are over or near the limit, if it is over the limit via the API call Upgrade Product to automatically upgrade the client.

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