Built-in PointsRuleType that awards bonus points calculated from another points allocation source's own result for the same sales record, rather than from the record's raw values. Configured with the base rule to derive points from, an optional multiplier and/or fixed amount to add on top, and an optional list of product category codes that a record's SKU must belong to for a bonus to apply. Registered as a static built-in rule type alongside SimplePointsRuleType, so it is available for any points allocation source without needing an account-specific configuration.
Implements: PointsRuleType
Properties
| Property | Returns | Description |
|---|---|---|
| fields | List<ExtraField> | The configuration fields shown when setting up this rule on a points allocation source: the base rule to derive points from, an optional multiplier, an optional fixed amount to add, and an optional list of category codes to restrict which records qualify. |
| id | String | Unique identifier for this rule type, used to select it when configuring a points allocation source. |
| title | String | Display title shown when choosing a points rule type in the admin UI. |
Methods
getId()
Returns: String
Unique identifier for this rule type, used to select it when configuring a points allocation source.
getTitle()
Returns: String
Display title shown when choosing a points rule type in the admin UI.
getFields()
Returns: List<ExtraField>
The configuration fields shown when setting up this rule on a points allocation source: the base rule to derive points from, an optional multiplier, an optional fixed amount to add, and an optional list of category codes to restrict which records qualify.