{% extends "email/layout.mjml.twig" %} {% block content %} {{ headerMessage }} {% if message is defined %} {{ message|nl2br }} {% if link is defined %}{{ order.trackingNumber }}{% endif %} {% endif %} {{ 'order.order'|trans({}, 'email') }} #{{ order.id }} ({{ "now"|date("d/m/Y") }}) {{ 'order.product'|trans({}, 'email') }} {{ 'order.quantity'|trans({}, 'email') }} {{ 'order.price'|trans({}, 'email') }} {% for item in order.orderItems %} {{ item.product.name }} {{ item.quantity }} ${{ item.price | format_number }} {% endfor %}
{{ 'order.subTotal'|trans({}, 'email') }} : ${{ order.subtotal|number_format(2, ',', '.') }}
{{ 'order.shipping'|trans({}, 'email') }}: {{ order.shippingType.name }} {% if order.shippingCost == 0 %} (Gratis) {% else %} (${{ order.shippingCost|format_number }}) {% endif %}
{{ 'order.paymentMethod'|trans({}, 'email') }}: {{ order.paymentMethods.name }} {% if order.discount != 0 %}(- ${{ order.discount|format_number }}){% endif %}
{{ 'order.total'|trans({}, 'email') }}: ${{ order.total|number_format(2, ',', '.') }} {% if transferData is defined and order.paymentMethods.id == 2 and order.orderStatus.id == 1 %} {{ 'order.transfersDataMessage'|trans({}, 'email') }}

{{ 'order.alias'|trans({}, 'email') }}: {{ transferData.alias }}
{{ 'order.cbu'|trans({}, 'email') }}: {{ transferData.cbu }}
{{ 'order.companyName'|trans({}, 'email') }}: {{ transferData.companyName }}
{{ 'order.bank'|trans({}, 'email') }}: {{ transferData.bank }}
{{ 'order.cuit'|trans({}, 'email') }}: {{ transferData.cuit }}
{{ 'order.accuntNumber'|trans({}, 'email') }}: {{ transferData.accountNumber }}
{% endif %} {% if order.shippingType.id == 3 %} {{ 'order.branchInformation'|trans({}, 'email') }}
{{ order.shippingBranch }}
{% endif %} {% if order.shippingType.id == 4 %} {{ 'order.shippingInformation'|trans({}, 'email') }}
{{ order.shippingStreet|upper }} {{ order.shippingNumber|upper }} {% if order.shippingFloor is not null %} {{ 'order.shippingFloor'|trans({}, 'admin') }} {{ order.shippingFloor|upper }} {% endif %} {% if order.shippingApartament is not null %} {{ 'order.shippingApartament'|trans({}, 'admin') }} {{ order.shippingApartament|upper }} {% endif %} - {{ order.shippingCity.name|upper }} ({{ order.shippingPostalCode|upper }})
{% endif %}
{% endblock %}