Solved

How to check whether a customer has placed another order since beginning the post purchase flow?

empiricalarby
Trailblazer
170 1 29

Hi there.

 

I'm using a post-purchase flow that targets customers who buy samples of my product.

 

The goal is to remind them to buy a full size order if they liked the sample. But I don't want to send them an email if they've already come back for more. I only want to send the email if they've not placed another order since buying the sample. How do I do that?

 

Here's my current attempt:

Screenshot 2024-05-11 141236.png

I'm struggling with the 2nd to last box, which says "check if created at is equal to order customer last order created at". The goal is to check if their last order was a sample order, so that I can remind them to order a full size order if they liked it. I'm finding it very confusing to determine whether I'm selecting the right condition, since there's no way to test whether the flow actually works without waiting many days.

 

Thanks

Accepted Solution (1)
paul_n
Shopify Staff
1011 133 242

This is an accepted solution.

That condition would check if the last order date is the same as the order that started the workflow. So if it's true you know they haven't purchased any product. But I suspect you want something that is specific to the SKU. For example, they could've purchased any product. 

 

Doing that latter thing is more complicated and depends on your store. For example, how would you know that a sample is related to full size product? Are they different variants of the same product? Does one always have "sample" in a product attribute or a tag?

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.

View solution in original post

Replies 44.

paul_n
Shopify Staff
1011 133 242

Can you show what is in your condition?

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
empiricalarby
Trailblazer
170 1 29

Screenshot 2024-05-13 223135.png

empiricalarby
Trailblazer
170 1 29

Screenshot 2024-05-13 223135.png

paul_n
Shopify Staff
1011 133 242

This is an accepted solution.

That condition would check if the last order date is the same as the order that started the workflow. So if it's true you know they haven't purchased any product. But I suspect you want something that is specific to the SKU. For example, they could've purchased any product. 

 

Doing that latter thing is more complicated and depends on your store. For example, how would you know that a sample is related to full size product? Are they different variants of the same product? Does one always have "sample" in a product attribute or a tag?

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.