Automatic Discounts
Introduction
Automatic discounts are discounts that are automatically applied to a customer’s order, on item level. The discount can be relative, such as 10%, or absolute such as 10€. You can further narrow down the discount conditions to a specific audience or items.
Example: Get 10% discount on specific T-shirts, Get 10€ if you purchase a given MOV of a certain product category, etc.
Setting Basic Automatic Discounts up via SCAYLE Panel
In the SCAYLE Panel navigate to Shops and select the shop you want to create an Automatic Discount for. On the left hand side menu select Promotion ➜ Automatic Discount.
Here you will be able to see a list of existing Automatic Discounts, manage them and create new Automatic Discounts.
Create a new Automatic Discount
- Select the Shop where you want to create your promotion and go to Promotions ➜ Automatic Discount
- Click the + AUTOMATIC DISCOUNT button.
- In the Name field, type a name for the promotion.
- In the Display Name field, type the name of the promotion that will be shown to the customer during the Checkout Process
- Priority: enter the priority of the promotion compared to others.
- Start date: enter the date and time when the promotion starts running.
- End date: enter the date and time when the promotion becomes inactive.
- Countries: select which countries that will be eligible for a promotion
- Audiences: select audience(s) that will participate on the promotion
- Allow promotions to be combined with other promotions on the basket
- Select the Customer Buy condition.
- Define from which group the customer should Select Items From:
- Specific Product: The promotion will be applied in case specific Product IDs are bought
- Specific Categories: The promotion will be applied in case items from a specific category are bought
- Specific Attributes: The promotion will be applied in case items from a specific attribute are bought
- Any product: The promotion will be applied in case any item is bought
- Define what is the Minimum Unique Items of a Basket which needs to be bought by the customer
- Set minimum order amount
- Define from which group the customer should Select Items From:
- Set where the Customer Gets the promotion:
- Specific Product: The promotion will be applied to specific Product IDs
- Specific Categories: The promotion will be applied to specific categories
- Specific Attributes: The promotion will be applied to specific attributes
- Any product: The promotion will be applied to any product
- Select the type of discount that will be applied: free, percentage and amount
- Select the maximum number of items the customer can redeem
- Click Create Promotion.
Examples
Scenario 1: Get 10% discount on specific t-shirts
All the users in your German shop get, for example, a 10% discount when buying specific t-shirts.
Set up:
.png)
.png)
Scenario 2: Get 10€ if you purchase a given product category with a minimum order value
VIP users get, for example, a 10€ discount on any of your shoes, if they order a minimum of 200€. This promotion is not combinable with other promotions.
Set up:
.png)
.png)
Edit an Automatic Discount
- Select the Shop where you want to edit your promotion and go to Promotions ➜ Automatic Discount.
- Click the Edit button.
- Note from here you can update your rules on the same template you used to create it OR
- Deactivate the discount, for this click on the 3 vertical dots besides “edit” > select deactivate
Hint: On the right side you can see a nifty summary of all your promotion is doing!
- Hit save
Delete an Automatic Discount
- Select the Shop where you want to edit your promotion and go to Promotions ➜ Automatic Discount
- Click on the 3 vertical dots besides Edit ➜ Delete
- Confirm on pop up
Setting Basic Automatic Discounts up via Admin API
To create an automatic discount using Admin API, see here.
Setting Advanced Automatic Discounts up via SCAYLE Panel
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
payload.items.filter(it, it.price == math.least(payload.items.map(i, i.price)))[0].price == item.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 20 euros
Note that prices are expressed in euro cents, not euros
Create a new Advanced Automatic Discount
- Select the Shop where you want to create your promotion and go to Promotions ➜ Advanced Discount
- Click the + Advanced Discount button.
- Enter a promotion Name.
- Select a Type: Automatic Discount.
- Select a Start date and End date.
- 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.
- Select whether the promotion should be combinable with other promotions.
- If selected, enter Combinable promotion IDs in the Allowlist or Blocklist.
- In Countries, select in which countries of the current shop the promotion should be valid.
- In Audiences, select for which customer audience the promotion should be valid.
- (Optional) In Combinable, select which promotions are allowed or blocked for combination.
- Add the Automatic Discount of the promotion.
- Add at least one Condition to the promotion.
- Click Save.
Edit or Deleting an Advanced Automatic Discount
Edit
- Select the Shop where you want to edit your promotion and go to Promotions ➜ Advanced Discount.
- Click the Edit button.
- Note from here you can update your rules on the same template you used to create it OR
- Deactivate the discount, for this click on the 3 vertical dots besides “edit” > select deactivate
Hint: On the right side you can see a nifty summary of all your promotion is doing!
- Hit save
Delete
- Select the Shop where you want to edit your promotion and go to Promotions ➜ Advanced Discount
- Click on the 3 vertical dots besides “Edit” > Delete
- Confirm on pop up
\