Jump to content

Hosting disk addon and overage calculation


tkalfaoglu

Recommended Posts

Hi there. For some hosting packages, I had an addon that said "Extra 1GB Disk Space".

If the customer were to purchase that to his/her hosting, it should add extra space.

 

I was implementing this manually -- if someone ordered this, I would change the quota of that user in the hosting server.

 

However, charging overages causes headaches; the overage processor has no idea that a hosting package has an +1GB addon, hence still punishes users that overdo the disk usage.

 

Any ideas how to proceed?

Many thanks, -t

Link to comment
Share on other sites

I think the workaround would be to, instead of using a product addon, to use configurable options.

 

http://docs.whmcs.com/Disk_Space_and_Bandwidth_Overage_Billing

 

If you have configurable options named "Disk Space" and "Bandwidth", then these will override the limits set on the Other tab. These will then be used in the overages calculations. So for example if the soft disk limit was set to 10MB and the configurable option set to 20MB the client would only be charged for overage once they go above 20MB.

otherwise, the calculation uses the base amount in the product.

 

Overage billing allows you to bill based on the disk and/or bandwidth used for a given month over and above the base amount allowed with a package

if you enabled the Configurable Options Upgrade checkbox, then the user will be able to upgrade/downgrade their limits themselves and be charged accordingly... though i'm unsure if it would actually increase the disk space assigned to the hosting account on the server.

 

also be aware that addons are invoiced separately from the product; configurable options are invoiced at the same time as the product.

Link to comment
Share on other sites

  • 5 weeks later...

Hi,

 

I've read over the link that Brian posted - and while it makes sense, I see a bit of a problem.

 

The Documentation notes say :

If you have configurable options named "Disk Space" and "Bandwidth", then these will override the limits set on the Other tab. These will then be used in the overages calculations. So for example if the soft disk limit was set to 10MB and the configurable option set to 20MB the client would only be charged for overage once they go above 20MB.

 

 

And while this is fine, what if you have a group of products (for example, shared hosting plans) that all use the same configurable options. And you configurable options are things like :

 

Additional Disk Space

* Add 1 Gb Disk Space

* Add 5 Gb Disk Space

Additional Traffic

* Add 1 Gb/Month Traffic

* Add 5 Gb/Month Traffic

 

The issue here is that with the way the documentation reads, you would need to have a set of configurable options for EACH hosting plan, to allow it to increase the disk/bandwidth amounts correctly.

 

ie:

 

If hosting plan 1 has a disk limit of 1Gb, and you puchase and Additional 1Gb, your configurable Option would have the "Add 1Gb Disk space" as setting the disk space to 2Gb.

 

but if you have a hosting plan 2 with a disk limit of 1.5Gb, and the user purchases the "Add 1Gb" it would then only increase the disk space from 1.5, to 2Gb - because of the limit set.

 

So, the question is :

 

Can we have the configuration options to "add to" and "remove from" the soft limit on the product, rather than setting arbitrary limits? for example - have the limit as a "+1Gb"... that way, if the user downgrades, and removes the additional disk space, they return to the original limits of the plan?

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