{% extends '@SyliusShop/layout.html.twig' %} {% block title %} {{ 'sylius.ui.thank_you'|trans }} | {{ parent() }} {% endblock %} {% block content %}
{% set last_payment = order.payments.last() %}

{{ 'sylius.ui.thank_you'|trans }} 🌱

{{ 'sylius.ui.placed_an_order'|trans }}

Merci de nous faire confiance !
{% if order.customer is not empty and order.customer.email is not empty %}

Une confirmation de commande vient d’être semée dans votre boîte mail : {{ order.customer.email }}.

{% endif %} {% set shippingAddress = (order.shippingAddress is defined and order.shippingAddress is not empty) ? order.shippingAddress : null %} {% if shippingAddress %}

De nouvelles pousses vont fleurir très bientôt à cette adresse :
{{ shippingAddress.street|default('N/A') }}
{{ shippingAddress.postcode|default('N/A') }} {{ shippingAddress.city|default('N/A') }}

{% endif %} {% if order.items is defined and order.items|length > 0 %} {% for item in order.items %} {% endfor %}
Produits
{{ item.productName|default('Produit sans nom') }}
{% endif %}
{{ sylius_template_event('sylius.shop.order.thank_you.after_message', {'order': order}) }} {% if last_payment != false and last_payment.method.instructions is not null %}
{{ last_payment.method.instructions }}
{% endif %}
{% if last_payment != false %} {{ 'sylius.ui.view_your_order_or_change_payment_method'|trans }} {% endif %} {% if order.customer.user is not null %} {{ 'sylius.ui.view_order'|trans }} {% else %} {{ 'sylius.ui.change_payment_method'|trans }} {{ 'sylius.ui.create_an_account'|trans }} {% endif %}
{% endblock %}