Change strike-through price based on customer email domain
Rule breakdown, resource payload analysis, and outcomes explanation
{
"rules": [
{
"name": "Updates compares at based on customer email domain",
"conditions": [
{
"field": "price.jwt_customer.email",
"matcher": "matches",
"value": ".*@mybrand.com"
}
],
"actions": [
{
"type": "percentage",
"selector": "price",
"apply_on": "compare_at_amount_cents",
"value": 0.2
}
]
}
]
} Rules breakdown
Conditions
Actions
Resource payload analysis
Result check
Conclusion
Last updated