{% set totalproducts = 0 %}
{% for p in products %}
{% set subtotal = (p.unit_price_with_taxes * p.quantity) %}
{% set totalproducts = totalproducts + subtotal %}
{% endfor %}
{% set totalPrice = totalproducts + order.shipping_subtotal %}
{% set totalDiscount = 0 %}
{% if discounts is not empty %}
{% endif %}
{% if costo > 0 %}
{% endif %}