In this article, we'll show you how to add filter criteria to your Shopify order triggers so that you can set particular limitations to your automations. We'll also show you how to view completed orders for individual customers and the data included in that information.
Before continuing, you'll want to make sure that you've integrated your Shopify store with your Drip account. We've created an additional article to help you get your Drip and Shopify accounts connected.
Once you've connected the two services together, Drip will start receiving events from your Shopify store, and more specifically, the Order created event. This event gets pushed to Drip each time one of your customers completes an order in your Shopify store. And because Shopify sends order data directly over to Drip, you can use that data to trigger automations in your workflows and rules.
Here's a simple example of the order trigger in a workflow:
The above workflow example applies a tag and sends an email campaign to any customer that completes an order.
In the next section, we'll show you how to limit your Shopify order to trigger only for customers that have met a particular set of conditions, known as Order Filters.
Using Shopify Order Filters
Looking a bit deeper into the Order created event, you'll notice that there are two different filter criteria, in order to exclude this trigger from customer's that do not meet the filter's criteria:
Click the Add order filter button to add the following order filters:
- order amount between: The completed order must be for a monetary value between two amounts for the trigger to fire.
- number of items between: The customer's order must be for a particular amount of items for the trigger to fire.
If no order filters are set, this trigger will fire for any customer that completes an order in your Shopify store. However, once you've determined a filter for that trigger, the event will trigger only if its filter criteria have been met by the customer.
For example, if you want the order event to trigger only if the customer's order totals an amount between $50 and $100, you'd use the order amount between filter as such:
Or let's say that you'd like to trigger an automation only if the customer's order contains between 2 to 5 items. Here's how you'd set that trigger up:
You'll notice that you can use both filters simultaneously:
Note: When using both filters, the trigger will only fire if both of the filter's criteria are met for that individual order instance.
Now that we've explained how to set particular criteria for your order triggers, we'll show you how to view completed orders for individual customers in Drip.
Viewing Completed Shopify Orders in Drip
Each time a customer completes an order in your Shopify store, not only will Drip record the "Order created" event but an additional, "Placed an order" event, gets recorded at the same time. This event is so that you can view the particular information about an individual order like its order number, price, quantity, discount (if applicable), and total order amount.
To view that data, simply go to a customer who has recently completed an order and you'll see that Drip has displayed this information. Click Toggle Properties to display the order data: