-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules.json
More file actions
32 lines (32 loc) · 971 Bytes
/
Copy pathrules.json
File metadata and controls
32 lines (32 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"id": "pricing-rules-demo",
"rules": [
{
"id": "vip-order-discount",
"type": "simple_rule",
"options": {},
"conditions": [
{
"id": "minimum-cart-subtotal",
"type": "compare_two_numbers",
"options": {},
"params": [
{ "id": "cart-subtotal", "name": "op1", "type": "state_number", "value": "cart.subtotal", "options": {} },
{ "id": "comparison", "name": "comp", "type": "comparator", "value": ">=", "options": {} },
{ "id": "discount-threshold", "name": "op2", "type": "simple_number", "value": "100", "options": {} }
]
}
],
"actions": [
{
"id": "apply-vip-discount",
"type": "apply_discount",
"options": {},
"params": [
{ "id": "discount-percent", "name": "percent", "type": "simple_number", "value": "16", "options": {} }
]
}
]
}
]
}