Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I have used the hyphens in each to get rid of the majority of them. For some reason there is one at the end that still does not go away. Exception: Got error updating metafield: "Value must be an integer." For value: "330\n", Type: number_integer.
{%- assign total_volume = 0 -%}
{%- for lineItems_item in order.lineItems -%}
{%- assign product_volume = lineItems_item.variant.variantVolume.value -%}
{%- assign item_volume = product_volume | times: lineItems_item.currentQuantity -%}
{%- assign total_volume = total_volume | plus: item_volume -%}
{%- endfor -%}
{{total_volume}}
Solved! Go to the solution
This is an accepted solution.
{{- total_volume -}}
This is an accepted solution.
{{- total_volume -}}