New Customer Product Add On Flow

New Customer Product Add On Flow

gabagool1
Visitor
3 0 0

I am trying to create a flow that adds a product automatically to customer's carts when they are new customers for a specific Sku. For example, if a customer orders X they automatically get Y added to their cart. This is easy to do for every order, but I am running into trouble when I add the "Customer Created" trigger. Has anyone successfully done this? 

Replies 3 (3)

paul_n
Shopify Staff
1779 195 418

You can't edit the cart with Flow...you must use Functions for that as it needs to be very fast and synchronous

 

Flow can edit the order after checkout, though.

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.
gabagool1
Visitor
3 0 0
Hi Paul,

Thanks for that info. Do you know if Flows has a way to separate out new
vs. existing customers? I would be fine adding the item after checkout, but
want it to only go to New Customers.

Thanks!
paul_n
Shopify Staff
1779 195 418

You can check if order.customer.numberOfOrders > 1. Or use "Get order data" to query for orders for that customer (and count if > 1). Probably other ways too.

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.