-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from coopTilleuls/mail
Override order confirmation mail
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
tests/Application/templates/bundles/SyliusShopBundle/Email/orderConfirmation.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |