New features available! Check the changelog
Subscribfy

Actions, Targets & Selections

What a discount does, what it applies to, and how candidates are chosen

Every Rule node pairs an action (what the discount does) with a target (what it applies to), then uses a selection strategy to pick from the matching candidates.


Actions

The action is the effect side of a Rule. Three actions are available at launch.

ActionParametersWorks with
Fixed amount offAmount (money, 0 or more) and an optional customer messageProduct, Order, Shipping
Percentage offPercentage (0 to 100) and an optional customer messageProduct, Order, Shipping
Free shippingOptional customer messageShipping only

The message is the customer-facing label shown at checkout next to the discount line, for example "Member discount" or "Welcome offer".

Amounts default to the cart's presentment currency. Each action is checked for compatibility with its target when you save, so invalid pairings are rejected before the discount is stored.


Targets

The target decides which items or delivery options receive the discount. Available targets depend on the discount class.

TargetWhat it doesExtra setting
All cart linesDiscount every line itemNone
Lines matching conditionDiscount only lines that match a per-line conditionA condition evaluated for each line
Cheapest lineThe single lowest-priced lineNone
Most expensive lineThe single highest-priced lineNone
TargetWhat it does
Order subtotalThe order subtotal as a whole
TargetWhat it doesExtra setting
All delivery optionsEvery delivery optionNone
Delivery options matching conditionOnly delivery options that match a per-option conditionA condition evaluated for each option

"Lines matching condition" and "Delivery options matching condition" reuse the same condition builder described in Conditions, evaluated once per line or per option.


Selection Strategies

When more than one candidate matches, the selection strategy tells the runtime how to pick.

StrategyMeaningAvailable on
FirstApply to the first eligible candidate, then stopProduct, Order, Shipping
AllApply to every eligible candidate (stackable)Product, Order, Shipping
MaximumApply to the candidate producing the largest savingProduct only
MinimumApply to the candidate producing the smallest savingProduct only

Valid Combinations

Only the pairings below are allowed. The builder rejects anything else when you save.

Walk this tree from your discount class to a valid action, target, and selection.


Not Yet Available

Buy-X-get-Y, fixed-price, and shipping percentage-off with extra options are natural extensions of the framework but are not exposed at launch. See How It Works for the wider roadmap.


Was this page helpful?

On this page

AI Chat

Ask a question about Subscribfy