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

PropertyReturnsDescription
fieldsList<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.
idStringUnique identifier for this rule type, used to select it when configuring a points allocation source.
titleStringDisplay 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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.