{% extends "YOUMailBundle::tplCommercant.html.twig" %} {% block body %}

Commande N°{{ commandeId }}.
Un client passera au comptoir pour récupérer la commande.
{% if commandetype.retraitType == 2 %} {# cas ou le retrait est possible n'importe quand au horaire d'ouverture #} {% if commandetype.retraitDelais == 0 %}

Un client passera retirer son panier à partir du {{ "now"|date('d/m/Y') }} aux horaires d'ouverture.

{% elseif commandetype.retraitDelais == 1 %}

Un client passera retirer son panier à partir du {{ "now"|date_modify("+1 day")|date('d/m/Y') }} aux horaires d'ouverture.

{% elseif commandetype.retraitDelais == 2 %}

Un client passera retirer son panier à partir du {{ "+ " ~ commandetype.retraitCustomDelais ~ "day"|date('d/m/Y') }} aux horaires d'ouverture.

{% endif %} {% endif %} {% if commandetype.retraitType == 3 %} {# cas ou le retrait est possible après X heures #}

Un client passera retirer son panier à partir du {{ ("+ " ~ commandetype.retraitTypeOption ~ "hours + " ~ commandetype.retraitTypeOption2 ~ "minutes")|date('d/m/Y \à H:i') }}

{% endif %} {% if commandetype.retraitType == 4 %} {# cas ou le retrait est possible n'importe quand au horaire d'ouverture #} {% if commandetype.retraitDelais == 0 %}

Un client passera retirer son panier à partir du {{ "now"|date('d/m/Y') }} aux horaires défini.

{% elseif commandetype.retraitDelais == 1 %}

Un client passera retirer son panier à partir du {{ "+ " ~ 1 ~ "day"|date('d/m/Y') }} aux horaires défini.

{% elseif commandetype.retraitDelais == 2 %}

Un client passera retirer son panier à partir du {{ "+ " ~ commandetype.retraitCustomDelais ~ "day"|date('d/m/Y') }} aux horaires défini.

{% endif %} {% endif %}
Le client vous donnera un code secret.

A vous de jouer !

Visualiser le contenu de la commande
Valider le code secret et encaisser vos gains
Gérer commande
{% endblock %}