Hi, I’ve configured a flow to tag orders that have:
- quantity 0
- Continue selling when out-of-stock - ENABLED
Which adds a tag the the order itself.
This is fine.
However, I prefer if I could tag each product variant within that order like some of the apps are doing. You can see it in the attached image.
Is that possible using Flow?
And if so, can someone please help me with it?
Hey @Danilo-Todorov ! I could be wrong, but from what I can tell, it is not possible to add or edit custom attributes to the products in an order after it’s placed through Flow or Shopify APIs. Apps that add this data do it before checkout by attaching attributes before the product is added to cart.
More here: https://community.shopify.com/post/2264347
As a workaround, you could perhaps add or update metafields on the order based on the products in it. Your workflow would look something like this -
- Add metafield definitions to Order in Settings
- Create a flow based on “Order created”
- Iterate over products until you find a preorder product, then update the metafields.
Let me know if that helps. Cheers!
No you can’t tag order line items. You could do a metafield on the order to basically store that same info and use it within a flow.
@Danilo-Todorov Could you let me know which app you use to show that delivery note meta field in screenshot?