When you create a tariff plan, you can set an add-on that will depend on another service add-on. The amount of one resource will affect the amount of the other. The add-ons can be associated by:
- values — the service provider sets values for the main and dependent add-on. When a client buys a certain amount of the main resource, BILLmanager sets limits on the associated add-on: clients cannot order fewer resources than their provider has set. See more under "Add-ons associated by values".
- ratio — e.g. the amount of disk space depends on the number of databases: 1 database accounts for 10 GB of disk space. You need to create a tariff plan with the billing type "Based on values of other resources". Learn more under Billing type: "Based on values of other services".
Add-ons associated by values
Complete the following steps:
- Go to Products → Tariff plans → Dependencies → Create.
- Select the Main add-on to the tariff. In the list, you can see all the resources of the selected tariff plan: Products → Tariff plans → Config.
- Enter the Value, that will modify the associated add-on. These are the same values as you have configured in Products → Tariff plans → Config → Edit.
- Select the Dependent add-on to the tariff. In the list, you can see all the resources of the selected tariff plan: Products → Tariff plans → Config.
- Enter the Value of the associated add-on that the client's order should contain when he buys the specified value of the main add-on.
- Click Ok.
Note:
You cannot configure associated Product types.
Example
We want to sell VPSs (tariff StartVM) and need to associate its add-ons processor and RAM. If a client orders a processor with 1500 Mhz and more, the amount of RAM cannot be less than 2048 MB.
- Go to Products → Tariff plans → select the tariff StartVM → Dependencies → Add.
- Main add-on → Tariff plans → Config → Add. Learn more under Tariff configuration details.
- Enter 1500 Mhz in the Value field.
- If the value is not present, create a resource with the corresponding type in Products → Tariff plans → Config → Add. Learn more under Tariff configuration details.
- Enter 2048 MB in the Value field.
- 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.