Re: Using flow to hold fulfilment on a collection

Solved

Using flow to hold fulfilment on a collection

Anneke86
Visitor
2 0 1

Hi! 

 

We sometimes have products that become out of stock but with more due in imminently, so we add them to a 'Pre-Order' collection. My question is can I use Flow to automatically put the fulfilment of these orders on hold? Or automatically add a tag to them so I can filter which orders are ready for fulfilment and which need to wait?

 

So I'm hoping for a flow like "If order is in collection 'pre-order', place fulfilment on hold' but i don't see how to do that.

 

TIA!

Accepted Solutions (2)

RPiii
Shopify Staff
89 16 33

This is an accepted solution.

Would something like this work?

16-45-7u4e3-fpzvo

 

Start with an Order created trigger, then for each line item in the order, check if the product is in the relevant collection, and then Hold fulfillment order (or whatever other action you desire).

 

View solution in original post

RPiii
Shopify Staff
89 16 33

This is an accepted solution.

Actually, looking at this again and you probably don't even need the for each loop. A simpler and more efficient approach would be to define it all in a condition where if at least one of order.lineItems and at least one of product.collections matches your criteria then hold fulfillment.

18-40-2w96m-lcr7i

 

 

View solution in original post

Replies 4 (4)

Kalen_Jordan
Shopify Partner
779 36 141

Yeah I think you would need a custom run code step though to pull in the collections associated to the products in the line items.

RPiii
Shopify Staff
89 16 33

This is an accepted solution.

Would something like this work?

16-45-7u4e3-fpzvo

 

Start with an Order created trigger, then for each line item in the order, check if the product is in the relevant collection, and then Hold fulfillment order (or whatever other action you desire).

 

Anneke86
Visitor
2 0 1

YES! Thank you, that did the trick!

RPiii
Shopify Staff
89 16 33

This is an accepted solution.

Actually, looking at this again and you probably don't even need the for each loop. A simpler and more efficient approach would be to define it all in a condition where if at least one of order.lineItems and at least one of product.collections matches your criteria then hold fulfillment.

18-40-2w96m-lcr7i