PromotionAction - Liquid Object Reference
On this page
Description
The PromotionAction object contains information about how a Promotion acts when it is applied.
:::note
This object supports custom data via the data attribute.
:::
Backed by
This drop renders the s_c__Promotion_Action__c Salesforce object. A theme writes it as promotion_action.
| Liquid attribute | Salesforce field |
|---|---|
action |
s_c__Action__c |
calculation |
s_c__Calculation__c |
discount_percent |
s_c__Discount_Percent__c |
discount_value |
s_c__Discount_Value__c |
discount_value_points |
s_c__Discount_Value_Points__c |
qualifying_quantity |
s_c__Qualifying_Quantity__c |
Every other attribute on this drop is derived by StoreConnect rather than read straight from one field. The Attributes section lists them all.
Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from promotion_action.data. See custom data fields in Liquid.
Attributes
| Attribute | Type | Description |
|---|---|---|
action |
String | Returns the action that this PromotionAction will take, eg: ‘apply_per_item’, ‘apply_per_order’, ‘buy_one_get_another_at_discount’, ‘apply_free_shipping’, ‘apply_discount_shipping’ |
calculation |
String | Returns the calculation type for this PromotionAction, eg: ‘percentage’, ‘flat_rate’ |
discount_percent |
Number | Returns the percentage of discount to apply |
discount_value |
Number | Returns the amount of discount to apply |
discount_value_points |
Number | Returns the amount of discount to apply in points |
id |
String | Returns the unique id for this PromotionAction |
promotion |
Promotion | Returns the Promotion object associated with this PromotionAction |
qualifying_quantity |
Number | Returns the quantity of scoped items needed before the order qualifies for the promotion |
Available on
- Promotion - Liquid Object Reference —
actions
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.