Calculating the sum of item variant metafields in the cart

Hi @TW90 ,

Please add code:

{%- assign length_cm = 0 -%}
{%- for item in cart.items -%}
    {%- assign length_cm = length_cm | plus: item.variant.metafields.product_data.length_cm -%}
{%- endfor -%}
Sum of variant.metafields.product_data.length_cm = {{ length_cm }}

Hope it helps!