Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I am trying to figure out a way to add/remove tags from a specific order made by the customer when they have submitted a new order.
Context:
I'm giving my customers the option to add extras to their order. In case customers have didn't opt-in for that, I would still like to send them an email before the order goes into production to try and 'upsell' the extras once more - the customer is basically sent an email with a permalink with only the 'extras' on the checkout page and a property with the value of the original order id.
I have already managed to do all of this with Flow - however, I'm now stuck at trying to update the original order in case the customer decides to add the extras.
What I have done so far is:
- Trigger when a new order is created > Check if the order only has the 'extras' >
What I would need to do next is:
- Get the "main" order by using the 'order_id' value in the 'extras' order;
- Add a 'with-extras' tag to the "main" order (and remove the 'standard' tag);
I'm not even sure if this is something that can be done with Flow so I figured I'd come here for help.
Thanks in advance.
Have you looked at using a "Get order data" action? I don't think you can query by ID, but you can by customer and other values like a tag.
Yea, I was looking exactly at this action but what I'm unsure of is - when getting the order data, isn't this just a readable object? If I get the order data from that first order within the flow for this new order, how would I then change the original one?
Assuming you get 2 orders back, you could check if the order id returned by "Get order data" matches the order from the trigger.
Something like;
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025