Installation


Upgrades


DTC-Xen Installation


DTC-Xen / Dom0 Howtos

DTC-Xen / DomU Howtos

FAQ


DTC Howtos


Manuals


Features


Roadmap


Devel docs


Wiki - i18n


Wiki - Meta


CustomProducts

The new versions of dtc let you add custom product types to manage custom services like for example web page design or game hosting and make custom actions when a new custom product is added (new account), when a custom product expires and when a custom product is renewed.

In the Hosting Product Manager there are 3 sections to edit:

  • Product list editor (Custom Heb Types): This are the categories of the custom products, for exxample one category could be Web Design and other category could be Game Hosting. It also contains the actions to be done when a custom product is created (new account), when a custom product expires and when a custom product is renewed.
  • Product list editor (Custom): This are the product plans of each category. For example Counter Strike 12 slots or Counter strike 20 slots (both plans correspondig to the game hosting category)
  • Custom fields for custom product types: Tis adds custom fields for each product type to be used in .

Product list editor (Custom Heb Types):

In this section you have the categories for the custom products and the actions to do in case of new account creation, expiration o renewall of a custom product of this category. The fields of this section are:

  • Name: Is the name of the product category (for example Game Hosting or page design)
  • Requires Domain Name: With this checkbox you specify if this custom product requires a domain name or not. If this checkbox is checked, then in new account form will ask for a domain name to complete.
  • New account execution type: Here you set what kind of action is done when a new account is created.
    • None: does nothing
    • URL: opens an url (with wget)
    • Use PHP Eval function: executes PHP code with eval function.
    • Send an email to admin: Sends an email to DTC administrator.
  • Command to execute when an account is created: Actin to be executed according to "New account execution type"
    • If "New account execution type" is set to none: no action is taken, this field is just ignored.
    • If "New account execution type" is set to URL: here you should put the url to be gathered.
    • If "New account execution type" is set to Use PHP Eval function: Here you should put the php code to be executed by the eval function.
    • If "New account execution type" is set to Send an email to admin: this is the body of the email to send.

In this field you can use variables (entered like where varname should be replaced with "Variable name" of the crrespondig feld of "Custom fields for custom product types") to pass that value to the executed script or url or mail.

  • Expiration execution type: Same as "New account execution type" but for expiration.
  • Command to execute when an account expires: Same as "Command to execute when an account is created" but for expiration.
  • Renewall execution type: Same as "New account execution type" but for renewall.
  • Command to execute when an account is renewed: Same as "Command to execute when an account is created" but for renewall.

Product list editor (Custom):

In this section you can edit the product plans of each category. For example Counter Strike 12 slots or Counter strike 20 slots (both plans correspondig to the game hosting category) or baic design (corresponding to web design category). When you add a new product the fields that appear are: Renewal-ID, Name, Period, Price, Setup fee, Commission, Custom product type and Private. Custom product type is the category of the custom product, and this other fields are the same as the fields used in dedicated or vps products. After adding the new product plan, apears a new column called Custom fields that has all the fields defined in "Custom fields for custom product types" and you can edit those fields.

Custom fields for custom product types:

In this section you can edit individual fields for each custom product category. It has the same fields (and the same way to use it) than the "Custom registration fields". For example if you have a category that is game hosting, it can have fields to define how many clients can connect to the game (slots), or the port range allowed, or the ip range allowed.


Editing this page means accepting its license.

Page last modified on March 15, 2012, at 02:38 PM EST