$sqlParams['content_html'
] =
$contentHtml;
} if ($contentPlain !== null
) { $sqlParams['content_plain'
] =
$contentPlain;
} if ($senderName !== null
) { $sqlParams['sender_name'
] =
$senderName;
} $connection->
update('mail_template_translation',
$sqlParams,
[ 'mail_template_id' =>
$mailTemplateId,
'language_id' =>
$langId,
'updated_at' => null,
]);
} private function getOrderConfirmationHtmlTemplateEn(): string
{ return '<div style="font-family:arial; font-size:12px;">
{% set currencyIsoCode = order.currency.isoCode %}
{{order.orderCustomer.salutation.letterName }} {{order.orderCustomer.firstName}} {{order.orderCustomer.lastName}},<br>
<br>
Thank you for your order at {{ salesChannel.name }} (Number: {{order.orderNumber}}) on {{ order.orderDateTime|date }}.<br>
<br>
<strong>Information on your order:</strong><br>
<br>
<table width="80%" border="0" style="font-family:Arial, Helvetica, sans-serif; font-size:12px;">
<tr>
<td bgcolor="#F7F7F2" style="border-bottom:1px solid #cccccc;"><strong>Pos.</strong></td>
<td bgcolor="#F7F7F2" style="border-bottom:1px solid #cccccc;"><strong>Description</strong></td>
<td bgcolor="#F7F7F2" style="border-bottom:1px solid #cccccc;"><strong>Quantities</strong></td>
<td bgcolor="#F7F7F2" style="border-bottom:1px solid #cccccc;"><strong>Price</strong></td>
<td bgcolor="#F7F7F2" style="border-bottom:1px solid #cccccc;"><strong>Total</strong></td>
</tr>
{% for lineItem in order.lineItems %}
<tr>
<td style="border-bottom:1px solid #cccccc;">{{ loop.index }} </td>
<td style="border-bottom:1px solid #cccccc;">
{{ lineItem.label|u.wordwrap(80) }}<br/>
{% if lineItem.payload.options|length >= 1 %}
{% for option in lineItem.payload.options %}
{{ option.group }}: {{ option.option }}
{% if lineItem.payload.options|last != option %}
{{ " | " }}
{% endif %}
{% endfor %}
<br/>
{% endif %}
{% if lineItem.payload.productNumber is defined %}Art. No.: {{ lineItem.payload.productNumber|u.wordwrap(80) }}{% endif %}
</td>
<td style="border-bottom:1px solid #cccccc;">{{ lineItem.quantity }}</td>
<td style="border-bottom:1px solid #cccccc;">{{ lineItem.unitPrice|currency(currencyIsoCode) }}</td>
<td style="border-bottom:1px solid #cccccc;">{{ lineItem.totalPrice|currency(currencyIsoCode) }}</td>
</tr>
{% endfor %}
</table>
{% set delivery = order.deliveries.first %}
<p>
<br>
<br>
Shipping costs: {{order.deliveries.first.shippingCosts.totalPrice|currency(currencyIsoCode) }}<br>
Net total: {{ order.amountNet|currency(currencyIsoCode) }}<br>
{% for calculatedTax in order.price.calculatedTaxes %}
{% if order.taxStatus is same as(\'net\') %}plus{% else %}including{% endif %} {{ calculatedTax.taxRate }}% VAT. {{ calculatedTax.tax|currency(currencyIsoCode) }}<br>
{% endfor %}
<strong>Total gross: {{ order.amountTotal|currency(currencyIsoCode) }}</strong><br>
<br>
<strong>Selected payment type:</strong> {{ order.transactions.first.paymentMethod.name }}<br>
{{ order.transactions.first.paymentMethod.description }}<br>
<br>
<strong>Selected shipping type:</strong> {{ delivery.shippingMethod.name }}<br>
{{ delivery.shippingMethod.description }}<br>
<br>
{% set billingAddress = order.addresses.get(order.billingAddressId) %}
<strong>Billing address:</strong><br>
{{ billingAddress.company }}<br>
{{ billingAddress.firstName }} {{ billingAddress.lastName }}<br>
{{ billingAddress.street }} <br>
{{ billingAddress.zipcode }} {{ billingAddress.city }}<br>
{{ billingAddress.country.name }}<br>
<br>
<strong>Shipping address:</strong><br>
{{ delivery.shippingOrderAddress.company }}<br>
{{ delivery.shippingOrderAddress.firstName }} {{ delivery.shippingOrderAddress.lastName }}<br>
{{ delivery.shippingOrderAddress.street }} <br>
{{ delivery.shippingOrderAddress.zipcode}} {{ delivery.shippingOrderAddress.city }}<br>
{{ delivery.shippingOrderAddress.country.name }}<br>
<br>
{% if billingAddress.vatId %}
Your VAT-ID: {{ billingAddress.vatId }}
In case of a successful order and if you are based in one of the EU countries, you will receive your goods exempt from turnover tax.<br>
{% endif %}
<br/>
You can check the current status of your order on our website under "My account" - "My orders" anytime: {{ path(\'frontend.account.edit-order.page\', { \'orderId\': order.id}) }}
</br>
If you have any questions, do not hesitate to contact us.
</p>
<br>
</div>
';