How can I display order quantity in Slack using Shopify Flow?

How can I display order quantity in Slack using Shopify Flow?

Justinmhm
Tourist
6 0 0

It shows me the item names in the order but i also want to to show the quantity also. Please help me.

 

-- {{draftOrder.billingAddress.company}} has just submitted a new draft order for {{draftOrder.totalPrice}}.
{% for lineItems_item in draftOrder.lineItems %}
{{lineItems_item.name}}
{% endfor %}
Please calculate and add shipping fees to the order and send an invoice to the customer to pay.

View order: https://{{shop.myshopifyDomain}}/admin/draft_orders/{{draftOrder.legacyResourceId}}

 

Justinmhm_1-1685049693820.png

 

Reply 1 (1)

paul_n
Shopify Staff
1153 143 274

The fields all follow the same syntax and are passed through from the API. Docs for line items https://shopify.dev/docs/api/admin-graphql/2023-04/objects/LineItem#field-lineitem-quantity

 

-- {{draftOrder.billingAddress.company}} has just submitted a new draft order for {{draftOrder.totalPrice}}.
{% for lineItems_item in draftOrder.lineItems %}
{{lineItems_item.name}}
{{lineItems_item.quantity}}
{% endfor %}

 

 

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.