Create an Order Tag when Additional Details are added in order

Does anyone know how to create an order tag based on if Additional Details are in the order? I can’t find the “additional details” condition in Flow. I want to add, it’s not “order / note” field. I’ve already tried this. That only checks if there’s anything under “Notes”, not “additional details”

1 Like

@okayworkz
I think u need a custom script from when “Additional Details” isn’t an option in Flow.

I believe they are the customAttributes

Maybe it is also helpfull: https://community.shopify.com/c/shopify-design/automatically-add-tag-to-order-based-on-specific-products-in/m-p/2085652

Not product related - but thank you!

Unfortunately didn’t work :slightly_frowning_face: but thank you! It was a hopeful solution

I just tested it myself and it worked.

1 Like

Kalen is correct, the Additional Details fields on an Order are accessible through the order.customAttributes object in Flow.

Keep in mind, this will give you a list of all the fields with keys and values. You may need to check the key to make sure it’s the attribute you care about before using it. This can be done in both Conditions and Liquid.

Hope that helps!

1 Like

I see! Thank you! I guess I am just not that versed in the Flow and the codes. Thought it would be much easier to figure out. I don’t think I’m doing it correctly.

1 Like

Thanks for confirming! I may need additional assistance in this. I am not familiar with codes, etc. Would it be possible to get a step by step solution on this? I’ve tried Shopify Chat support but they were unable to assist.

If you’re interested in any help on a paid basis, feel free to reach out. This should fall under my $140 flat rate option. Links in my footer.

Here is a snippet in Liquid to get the value of the “some_key” additional details field into a variable called filtered_attribute

{%- assign filtered_attribute = order.customAttributes | where: "key", "some_key" | first -%}
{{filtered_attribute}}

And here it is in a condition

Hope that helps!