{% set orderLines = field.value %}
{% if orderLines is empty %}

Aucune ligne de commande.

{% else %} {% for line in orderLines %} {% endfor %}
Produit SKU Quantité Prix total
{{ line.product.description }} {{ line.product.sku }} {{ line.quantity }} {{ line.totalPrice|number_format(2, ',', ' ') }} €
Total commande {{ orderLines|reduce((carry, line) => carry + line.totalPrice, 0)|number_format(2, ',', ' ') }} €
{% endif %}