1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Expanding limits via Plesk SDK

Discussion in 'Plesk for Windows - 8.x and Older' started by dotgray, Jun 8, 2006.

  1. dotgray

    dotgray Guest

    We've recently installed Plesk/Win and configured ModernBill 4.4 to set up accounts via its module interface to the Plesk SDK. This works fine for new accounts, where the account type has fixed characteristics (e.g. a hosting package with X MB of disk space, Y GB of transfer, etc).

    However, as is typical with web hosting, we want to offer a la carte expansion of the base packages for clients who need more disk space, mailboxes, etc. ModernBill supports these via "add-ons", and ordering them is supported well enough through their order form process. However, each add-on requires a Plesk attribute in order to have any effect on actual hosting limits. I've gone through the Plesk SDK documentation and ModernBill's examples on using their Plesk module, and neither explain how to modify an existing limit.

    For example: a customer orders a base hosting package with 200MB of disk space. They select an add-on for an additional 100MB of disk space for a set monthly fee. ModernBill will happily now charge them for 300MB of storage, but when the domain is set up on via the SDK, domain_pref.exe only has one value for "disk_space", which represents the maximum.

    In this case, how do you set up the Plesk SDK to modify a limit so that it will *add* 100MB to the disk_space quota, rather than setting the new maximum limit to 100MB? The same problem also applies to max_traffic, max_box, and other limits those are often sold on a per unit basis.
  2. Ybuts

    Ybuts Guest

    You should use two scripts. First query will get the current value of some parameter. Second script will encreaze this value and then will set up in to Plesk. Hope that helps a bit.