Skip to content

Commit

Permalink
Merge pull request #13 from coopTilleuls/mail
Browse files Browse the repository at this point in the history
Override order confirmation mail
  • Loading branch information
dunglas authored Apr 14, 2020
2 parents 1899ecc + d6694ab commit bc5068d
Showing 1 changed file with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{% extends '@SyliusShop/Email/layout.html.twig' %}

{% block subject %}
{{ 'sylius.email.order_confirmation.subject'|trans({}, null, localeCode) }}
{% endblock %}

{% block content %}
{% set url = channel.hostname is not null ? 'http://' ~ channel.hostname ~ path('sylius_shop_order_show', {'tokenValue': order.tokenValue, '_locale': localeCode}) : url('sylius_shop_order_show', {'tokenValue': order.tokenValue, '_locale': localeCode}) %}

<div style="text-align: center; margin-bottom: 30px;">
{{ 'sylius.email.order_confirmation.your_order_number'|trans({}, null, localeCode) }}
<div style="margin: 10px 0;">
<span style="border: 1px solid #eee; padding: 10px; color: #1abb9c; font-size: 28px;">
{{ order.number }}
</span>
</div>
{{ 'sylius.email.order_confirmation.has_been_successfully_placed'|trans({}, null, localeCode) }}
</div>

<div style="text-align: center; margin-bottom: 30px;">
{% for shipment in order.shipments %}
{% if shipment.isClickNCollect() %}
{{ 'coop_tilleuls_click_n_collect.ui.collect_details'|trans }}
<div style="margin: 10px 0;">
<div style="border: 1px solid #eee; padding: 10px;">
{% include '@CoopTilleulsSyliusClickNCollectPlugin/Shop/order_collect.html.twig' with {'shipment': shipment} %}
</div>
</div>
{% endif %}
{% endfor %}
</div>

<div style="text-align: center; margin-bottom: 30px;">
<a href="{{ url|raw }}" style="display: inline-block; text-align: center; background: #1abb9c; padding: 18px 28px; color: #fff; text-decoration: none; border-radius: 3px;">
{{ 'sylius.email.order_confirmation.view_order_or_change_payment_method'|trans({}, null, localeCode) }}
</a>
</div>

<div style="text-align: center;">
{{ 'sylius.email.order_confirmation.thank_you'|trans({}, null, localeCode) }}
</div>
{% endblock %}

0 comments on commit bc5068d

Please sign in to comment.