Re: Create an Order Tag when Additional Details are added in order

Solved

Create an Order Tag when Additional Details are added in order

okayworkz
Tourist
5 0 2

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"

 

 

image+_1_+_3_.png

Accepted Solution (1)
Kalen_Jordan
Shopify Partner
726 33 126

This is an accepted solution.

I just tested it myself and it worked.

 

Screenshot 2024-07-31 at 7.23.33 AM.png

View solution in original post

Replies 11 (11)

oriboss
Visitor
2 0 0

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

okayworkz
Tourist
5 0 2

Not product related - but thank you!

Kalen_Jordan
Shopify Partner
726 33 126

I believe they are the customAttributes

 

Screenshot 2024-07-29 at 8.30.10 PM.png

okayworkz
Tourist
5 0 2

Unfortunately didn't work 🙁 but thank you! It was a hopeful solution

Kalen_Jordan
Shopify Partner
726 33 126

This is an accepted solution.

I just tested it myself and it worked.

 

Screenshot 2024-07-31 at 7.23.33 AM.png

DaveMcV
Shopify Staff
104 31 29

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!

DaveMcV | Flow Development 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.
okayworkz
Tourist
5 0 2

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.

DaveMcV
Shopify Staff
104 31 29

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

Screenshot 2024-08-05 at 3.58.59 PM.png

 

Hope that helps!

DaveMcV | Flow Development 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.
okayworkz
Tourist
5 0 2

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.

Kalen_Jordan
Shopify Partner
726 33 126

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.