{% set deliveryAddress = data.order.deliveryAddress %} {% set deliveryCountryId = deliveryAddress.countryId %} {% set billingAddress = data.order.billingAddress %} {% set email = "" %} {% for option in billingAddress.options %} {% if option.typeId == 5 %} {% set email = option.value %} {% endif %} {% endfor %} {% set estimatedShippingDate = "" %} {% set orderDates = data.order.dates %} {% for date in orderDates %} {% if date.typeId == 2 %} {% set estimatedShippingDate = date.date %} {% endif %} {% endfor %}