Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

create custom packages on the fly

Discussion in 'cPanel Developers' started by Jayreis, Jun 25, 2010.

  1. Jayreis

    Jayreis Member

    Joined:
    Feb 13, 2002
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    301
    Hello,

    First I hope this is in the correct category. I was not sure where I should post this question.

    So I have a server I want to test out a new functionality on although not sure if its possible with cpanel.

    Basically I want to allow customers to select amount of HDD space, and B/W and then after making payment to have a backend script that then creates their shared web hosting plan. I know how to setup accounts using the scripts/wwwacct script for predefined hosting packages that I had setup in my whm. But is it possible to setup accounts that are not apart of a predefined package in whm??

    thanks for any direction you can offer.
     
  2. david.cloudzu

    david.cloudzu Registered

    Joined:
    Aug 17, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    Yes, it is possible. Check out the documentation for the createacct API function. You'll see the following parameter:

    savepkg (boolean) — Save the settings used as a new package.

    Cheers,
    David.
     
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,554
    Likes Received:
    9
    Trophy Points:
    168
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Here is a direct link to the aforementioned documentation: Create an Account — createacct

    For additional reference I recommend reviewing the following documentation from our Developer Resources (sdk.cpanel.net):
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice