EZ Notify Rule Conditions

EZ Notify allows you to specify your own custom rules to decide when a notification should be sent out and to which channels or users.

You can set 'Event Rules' based on a condition or set of conditions. You can decide whether the the rule should match any of the specified conditions or all of them.

Note: Matching is case-insensitive.

EZ Notify Shopify App - Rule Conditions - Decide When to Send a Notification to Slack

Below is a few quick examples:

1. Send a notification if an order is placed by a customer tagged as "VIP" where the total amount is over 1000 and shipping outside of Canada.

To set up the conditions above, you can set the following:

Data must match: all conditions

  • Shipping Address - Country is not equal to Canada
  • Customer Tags contains vip
  • Total is greater than 1000

2. Send a notification if an order is shipping to the United States, Canada, or Mexico.

Data must match: any condition

  • Shipping Address - Country Code is equal to US
  • Shipping Address - Country Code is equal to CA
  • Shipping Address - Country Code is equal to MX

The above conditions can also be simplified by using the is equal to any operator and separating the values by a comma:

  • Shipping Address - Country Code is equal to any US,MX,CA

3. Send a notification if an order contains a Gift Card.

Data must match: all conditions

  • Line Items - Gift Card contains True

4. Send a notification if an order contains product SKU ABC or XYZ.

Data must match: any condition

  • Line Items - SKUs contains ABC
  • Line Items - SKUs contains XYZ

5. Send a notification if a an order came from the POS.

Data must match: all conditions

  • Source is equal to pos

Available Condition Operators

  • is equal to (e.g. 1 = 1)
  • is not equal to (e.g. 1 != 2)
  • is equal to any (use a comma-separated list of values, e.g. "US" is equal to any of: "US, MX, CA")
  • is not equal to any (use a comma-separated list of values, e.g. "US" is not equal to any of: "AU, GB, CA")
  • contains (e.g. "slippers, shoes, socks" contains "shoes")
  • does not contain (e.g. "slippers, shoes, socks" does not contain "pants")
  • starts with (e.g. "SKU12345" starts with "SKU")
  • ends with (e.g. "SKU12345" ends with "345")
  • is greater than (e.g. 2 > 1)
  • is less than (e.g. 1 < 2)
  • is set (data is not empty)
  • is not set (data is empty

Notes

1. When setting rule conditions for fields that contain multiple values such as Line Items, Fulfillments, Discount Codes, and Shipping Lines, you'd normally want to use the contains or does not contain condition operators here.

For these fields, you'd also want to use the complete value. For example, a "Line Items - SKUs" field might contain these values:

["LIPS-V1", "LIPS-V12", "EYEB-V5"]

Setting "Line Items - SKUs contains lips" won't match any result. You want to use the full SKU in this case like "Line Items - SKUs contains lips-v12".

For fields that only have a single value, the "contains" condition will do a partial match (e.g. "Landing Site contains .com").

2. When setting rules conditions for date fields, such as the Updated At or Created At fields, you'd normally want to use is greater than or is less than condition operators as Shopify uses the full timestamps here and not just the date.


App: EZ Notify

Tags: advanced features, rules engine