Using variables for price setup
You can define a price for every service catalog item. The price or recurring price of a catalog item can be modified with variables, increasing the base price for that item.
This pricing is useful if you want the price or recurring price dynamically calculated based on how a user completes the ordering form. For example, the cost of an item can be increased based on options the user selects, such as extra memory in a PC.
The following variable types can be configured to modify the total cost of an item:
- Check box
- Multiple choice
- Reference
- List collector
- Select box
- Lookup select box
Check box
A check box variable helps to set the price or recurring price of the item being ordered.
You can Create a check box variable and set the price of the item. Use the Price if checked or Recurring price if checked field to specify the price or recurring price difference for that variable when the option is selected.
- Calculated
- Fixed
- Multiple
Multiple choice
For a multiple choice variable, there are two options for pricing.
- Specify the price difference in the Price field on the question choices.
- Specify the recurring price difference in the Recurring Price field on the question choices.
Reference
A reference variable includes a Pricing implications field.
For example, suppose that computers in Phoenix cost $100 more than the ordering price, and computers in Boise cost $100 less than the ordering price.
- Set up a reference variable to the Location [cmn_location] table.
- Put a u_price field on the Location table.
- Set that field to 100 for the Phoenix location.
- Set that field to -100 for the Boise location.
When ordering a computer, if Phoenix is selected as the location for this variable, the ordering price is increased by $100. If Boise is selected, the ordering price is decreased by $100.
Lookup select box
A lookup select box variable is more powerful than a reference variable.
Specify the following when creating a lookup select box variable:
- Lookup from table: the table from which values are queried.
- Lookup value field: the field on the lookup table whose value is used as the value of the variable (typically sys_id).
- Lookup label field(s): a comma-separated list of fields on the
lookup table whose values are used to display the selections in the select box. For
example,manufacturer,name for the Software [cmdb_ci_spkg] table
would display selections as:
- Microsoft | Excel
- Adobe | Photoshop Elements
- Lookup price field: the field whose value is used to modify the price of the item being ordered.
- Lookup recurring price field: the field whose value is used to modify the recurring price of the item being ordered.