Dependent resources

When setting up a tariff, you can create a link between two of its additional resources (add-ons). When a link is set up between add-ons, the quantity of one (main) add-on affects the quantity of the other (dependent) add-on available for ordering. 

The add-ons in BILLmanager can be associated by:

  • value — the selected value of the main resource sets the minimum allowable quantity of the dependent resource. At the same time, the client can change the quantity of the dependent add-on. For example, disk space depends on the number of databases (DBs): when purchasing five DBs, the order must have 50 GB of disk space or more. If the customer specifies less than 50 GB of disk space, BILLmanager will automatically add the missing amount to the order. For more details, see the section of the current article "Dependency by value".
  • ratio — there is a fixed number of units of a dependent resource per unit of the main resource. In this case, the client cannot change the quantity of the dependent add-on. For example, disk space depends on the number of databases (DB): one DB must have 10 GB of disk space. If a customer orders five databases, 50 GB of disk space will be added to his order without the ability to change this value. To configure this dependency, create a resource with the "Based on the value of other resources" accounting type in the tariff content. For more details, see the article Billing type.

Dependence by values

To create a new dependency, go to Products → Tariff plans → select a tariff → Dependencies  Add :

  1. Basic add-on — select an add-on to the tariff, which will change the value of the dependent add-on. All resources from the contents of the selected tariff are available in the list: ProductsTariff plans → select tariff → Options.
  2. Value — set the value of the main add-on, the ordering of which will modify the dependent add-on. The values to select are the same as those configured in ProductsTariff plans → select tariff → Options Edit.
  3. Dependent add-on select an add-on to the tariff, which will vary depending on the value of the main add-on. All resources from the contents of the selected tariff are available in the list: ProductsTariff plans → select tariff → Options.
  4. Value — set the value of the dependent add-on to be on the client's order when they buy the specified value of the main add-on.
  5. Block dependent add-on from modification — select the option to block modification of dependent integer add-on. Only the Value set in the previous item can be selected when ordering. If “Processor”, ‘RAM’ or “Disk Space” is specified as a dependent add-on, creation of a blocking dependency is blocked.
  6. Click Ok to save the dependency.
Dependencies do not work for product parameters. For more information about parameters, see  Product types .

Examples of usage

 CPU and RAM add-ons

We want to sell VPSs (tariff StartVM) and need to associate its add-ons CPU and RAM. If a client orders a processor with 1500 Mhz and more, the amount of RAM cannot be less than 2048 MB. 

To create a new dependency, go to Products → Tariff plans → select the StartVM tariff→ Dependencies  Add :

  1. Basic add-on select CPU. If there is no such value, create a resource with the appropriate type in ProductsTariff plans → select tariff → Options Add. Learn more in Tariff configuration details
  2. Value — specify 1500 Mhz. 
  3. Dependent add-on — select RAM. If there is no such value, create a resource with the appropriate type in ProductsTariff plans → select tariff → Options Add. Learn more in Tariff configuration details
  4. Value — specify 2048 MB.
  5. Click Ok.

After you have completed the configuration:

  • if a client orders the processor with less than 1500 MHz, the above settings won't be applied. The client can order any amount of RAM;
  • if a client orders the processor with 1500 MHz and more, the settings will be applied. The client can order 2048 MB of RAM or more. 
  • creating a blocking dependency is prohibited.

Disk Space and Number of snapshots add-ons

For BackupBest virtual server sales you need to configure a dependency between the Disk space and Number of snapshots add-ons. If a customer orders 10GB, he should be able to create only 2 snapshots.

To create a new dependency, go to Products → Tariff plans → select the BackupBest tariff → Dependencies  Add :

  1. Basic add-on select Disk space. If there is no such value, create a resource with the appropriate type in ProductsTariff plans → select tariff → Options Add. Learn more in Tariff configuration details
  2. Value — specify 10 GB. 
  3. Dependent add-on — select Number of snapshots. If there is no such value, create a resource with the appropriate type in ProductsTariff plans → select tariff → Options Add. Learn more in Tariff configuration details
  4. Value — specify 2.
  5. Block dependent add-on from modification — activate the option to limit the number of snapshots.
  6. Click Ok to save the dependency.

After you have completed the configuration:

  • If a client orders disk space less than 10 GiB, the above settings won't be applied. The client can order any amount of disk space.
  • If a client orders disk space of 10 GiB or more, the settings will be applied. The number of snapshots per every 10 GiB in the order will always be 2.
The article was last updated on 07.08.2025. The article was prepared by technical writers of ISPsystem