docs

Advanced Combo Deals

Set up Advanced Combo Deals via the SCAYLE Panel when you need more complex and granular conditions than the standard Combo Deals flow supports.

Introduction to Advanced Discounts

Advanced Discounts allow you to define more complex and granular conditions for Automatic Discounts, Buy X Get Y, and Combo Deals. These configurations help tailor promotions to specific customer behaviors or product attributes.

When setting up advanced discounts, consider where the conditions should apply:

Item Conditions: Conditions that apply to items. Example: Only apply a discount to items that are red or belong to a specific product attribute group.

Global Conditions: Apply to the entire basket or customer context. Example: The basket must contain at least 3 items from a specific brand.

You can use these condition types in combination to build precise and effective promotions.

Condition Definition

Conditions (both global and Item conditions) are defined using Google Common Expression Language (CEL). SCAYLE’s implementation is based on Go (cel-go) with the Math extension (math.greatest(), math.least()) and an additional sum() function.

Note: Attributes on payload.customer.* are only validated in Checkout (not in the Storefront). If you want to evaluate customer conditions early, use the audiences feature.

Examples of cell-go and Math extension expressions:

This condition can be used to validate if current item is the item with the highest price

This second condition can be used to validate if current item is the item with the lowest price

The following condition will check for a sum of specific brand item totals within a basket (for example 1000 or more euros of NIKE brand within basket)

The following condition will check if the sum of the basket is higher than 20 euros

Note that prices are expressed in euro cents, not euros

Create a new Advanced Combo Deal

  1. Select the Shop where you want to create your promotion and go to Promotions ➜ Advanced Discount
  2. Click the + Advanced Discount button.
  3. Enter a promotion Name.
  4. Select a Type: Combo Deal.
  5. Select a Start date and End date.
  6. Enter a number for Priority. This determines the priority of the promotion in the case that there are multiple promotions active at the same time.
  7. Select whether the promotion should be combinable with other promotions.
    • If selected, enter Combinable promotion IDs in the Allowlist or Blocklist.
  8. In Countries, select in which countries of the current shop the promotion should be valid.
  9. In Audiences, select for which customer audience the promotion should be valid.
  10. In case no Item Sets are used, define the Quantity and its Counting Logic.
  11. Add the Final Amount of the Deal
  12. Add at least one condition to the promotion.
  13. Click Save.