Filtering orders by pickup in store location

Solved

Filtering orders by pickup in store location

joelurraco
Shopify Partner
22 0 15

Hello, I want to filter orders based on the location for pickup selected.

 

I am trying to develop a Flow that tags the order with the location name, and I'm having trouble finding some information in the Order object:

  • What field can I use to check if the order has the "Pickup in store" shipping method selected?
  • What field can I use to obtain the selected pickup location's name

 

I would also like to know if there is another way, without using Flow, to filter pickup in store orders by their selected location.

 

Thank you very much,

Accepted Solution (1)

paul_n
Shopify Staff
1818 199 432

This is an accepted solution.

The path depends on the trigger. Usually with fulfillment orders you would use "Fulfillment order ready to fulfill". The variable is located at fulfillmentOrder.deliveryMethod.methodType == "PICK_UP".

One order can have multiple fulfillment orders, so this runs per fulfillment order.

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 4 (4)

paul_n
Shopify Staff
1818 199 432

This is an accepted solution.

The path depends on the trigger. Usually with fulfillment orders you would use "Fulfillment order ready to fulfill". The variable is located at fulfillmentOrder.deliveryMethod.methodType == "PICK_UP".

One order can have multiple fulfillment orders, so this runs per fulfillment order.

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.
joelurraco
Shopify Partner
22 0 15

In our case we need to do it on order creation, so the tag is added before fulfillment.

paul_n
Shopify Staff
1818 199 432

 A fulfillment order is when an assigned of line items to locations. It's not a fulfillment. So you should still use that trigger

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.
joelurraco
Shopify Partner
22 0 15

Thank you, I've used that trigger and added tags using the {{fulfillmentOrder.assignedLocation.name}} variable to get the Location's name