Skip to product information
Published:2024.09.29
[Dawn] Example of setting to tag a customer with the correct total number of orders minus the number of canceled orders in Shopify
When creating a segment in Shopify using the total number of orders placed (orders_placed(count: *)) as a condition, canceled orders will not be excluded. Here is an example of a Flow configuration that assigns the correct total number of orders, excluding canceled orders, as a customer tag.
Example of setting to assign the correct total number of orders minus the cancelled orders as a customer tag

[Setup Method 1] Create a Flow that assigns the total number of orders as a customer tag when creating an order.

[Setup Method 2] Create a Flow that assigns a cancellation log and total order count as a customer tag when an order is canceled.

Sample Codes
Test Theme :Dawn/Rise 15.2.0