Adding order tags based on product tags

Adding order tags based on product tags

mindyads
Visitor
1 0 0

Looking to use the Shopify Flow app to create a flow where:

If any product in the order contains the product tag "gem" then add the tag to the order "gem"

 

The issue I am running in to is: there is no product tags being passed in to the order information. When I look at an order -- add .json to the end of the url to get the JSON fields -- there are no protags being shown.

 

How do I get the product tag field to be passed into the order inside the JSON fields? Then I can make the Shopify Flow easily. 

Replies 2 (2)

EBOOST
Shopify Partner
1189 310 348

Hi @mindyads ,

Shopify only supports to  show tags on product json. They don't support show tags of line item on order json. Maybe Shopify needs to change core code to do it.

- Hope can help. If you find my reply helpful, please hit Like and Mark as Solution
- Need a Shopify developer? Contact email: eboost10@gmail.com
- Visit our site: https://www.eboosttech.net to view and download shopify themes and magento2 extensions free
- ❤❤DONATE ❤❤Coffee tips

JoesIdeas
Shopify Partner
2385 219 630

Are you able to add in your flow code to make an API call or HTTP request to the product object to retrieve the tag? If yes, try that.

 

If no, consider using a data point that is included in the order line items (sku, title, line item properties, etc), instead of product tag.

 

If neither works, and you aren't able to find a solution with your existing apps, you can easily do what you're asking with Order Automator. You would just create a Tag Order rule, using the condition product tag = "Some Tag".

• Creator of Shopify automation apps Order Automator + Product Automator [apps that save you time + money]
• Shopify developer for 10+ years, store owner for 7 years
• I also make guides like Shopify Automation Tips and How to Figure Out Why You're Not Getting Sales