Email routing of Order notification based on Location

Email routing of Order notification based on Location

Tim-RTIT
Not applicable
2 0 0

Hello. 

I have 3 brick and mortar locations they share a single shopify store. 

Each holding different inventory.

I'm trying to route the Order notification email to the email address I have assigned to that location.

EG. Order made for New York store send Order email to ny.mystore.org email.

 

I have setup my locations and defined the email address for each location in Staff Notifications. However this does not seem to forward the order emails to the emails indicated.

 

I tired using flows and while I got some success, I'm having a tech of a time replicating the order email details via the variable builder.   

 

Does anyone have a solution to email routing based on location or have a flow that replicates the Order email that gets emailed?

Replies 2 (2)

Dregun
Tourist
6 1 1

I'm attempting to create something to do the same.  Unfortunately while it seemed I had it set correctly in testing it was sending emails for all orders, disregarding my check for "location".  (Now I got a weird but where I can't connect my checks to actions)

 

The only real success I was able to get was to populate an email with the order number, product sku, quantity and customers shipping address.  All well and good but its not sending that email for JUST a specific location, but all locations.

 

I'd imagine once you get the checks to sort based on location you can then do actions for each check to send an internal email as you are allowed to designate a static email address.

 

When an order is placed the system already designates a location based on inventory, so I personally don't need it to check for inventory before pulling location but that might be where my hangup is at, not sure.

 

Upon order creation - Check Location Name A - if yes then perform action send email to locationA@mystore.com

If not then 

Check Location Name B - If yes then perform action send email to locationB@mystore.com

if not then

Check Location Name C - If yes then perform action send email to locationC@mystore.com

 

Here are some of the variables I was able to use in generating the emails through flow

 

Subject:  Order {{order.name}}   (This puts the order ID Number in the subject line)

 

Email Body

{{order.subtotalLineItemsQuantity}} items:  (Gives the amount of items)
{% for lineItems_item in order.lineItems %}
{{lineItems_item.sku}}
{% endfor %}{% for lineItems_item in order.lineItems %}
{{lineItems_item.variantTitle}}
{% endfor %}

{{order.shippingAddress.firstName}} {{order.shippingAddress.lastName}}

{{order.shippingAddress.address1}}

{{order.shippingAddress.city}}

{{order.shippingAddress.province}}, {{order.shippingAddress.zip}}

 

"Province" also pulls state, took me a while to figure that portion out.  Unfortunately the formatting of the email isn't great and I can fix that once I get my location check functioning properly. 

Dregun
Tourist
6 1 1

Got location working properly, here is the condition that worked.

fulfillmentOrders_item.assignedLocation.name
 
Then choose "Equal to" as a statement and then you can put your location name   I cant seem to figure out how to attach my flow