How to tag specific products in orders using Shopify Flow?

How to tag specific products in orders using Shopify Flow?

djaguero
Shopify Partner
7 0 0

I have to tag the orders in Shopify Flow that have:

Order: "Product with tag A - Quantity 1" and "Product with tag B - Quantity 2"

Which objets I have to use in the flow? 

Replies 5 (5)

paul_n
Shopify Staff
1336 151 307

Can you elaborate more on what you are trying to do? Are you trying to tag an Order based on Product's that have certain tags (Tag A, Tab B)? If it has Tag A, tag it with Product title - Quantity 1? 

 

I will say that tags have a limited # of characters (40 I think) so if you have long titles this won't work

Paul_N | Flow Product 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.
djaguero
Shopify Partner
7 0 0

How do I tag the orders in Shopify Flow based in:
- Product Tag
- Quantity

I have clasified my 20 products in 5 types by sizes:
- XS
- S
- M
- L
- XL

 

This classification is in the tag of the products.

Now, what I need is tag the order based in this Product Tag and the quantity.
Basicly I need this because is the way that I resolved the automate package select.

 

Example 1:
Order #1:
Product with tag XS - Quantity 1"
Product with tag M - Quantity 2"
Flow taging the order with "box01"

 

Example 2:
Order #2:
Product with tag XS - Quantity 3"
Product with tag M - Quantity 8"
Flow taging the order with "box03"

paul_n
Shopify Staff
1336 151 307

Product data is located under order / lineItems / product. That's where you check tags, options, etc. Quantities are on the lineItems (search for quantity in the UI).

 

It's not quite clear what logic you want beyond checking if something has a tag. For example, an order could have multiple products with that same tag.

Paul_N | Flow Product 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.
djaguero
Shopify Partner
7 0 0

Ok, maybe is easy with meta fields. 

It there a way to sume the values (#integer) of the metafields of the products. 

 

For Example:

I have 2 product: 

Product A - Metafiled "weight = 1lb"

Product B - Metafiled "weight = 2lb"

so...

Order ##:
Product A - Quantity 2 
Product B - Quantity 3 
Total: Sume Metafiled "weight = 8lb"

I need this sume 

 

paul_n
Shopify Staff
1336 151 307

This is really a liquid question:

https://shopify.dev/docs/api/liquid/filters/plus

Paul_N | Flow Product 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.