{% 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 %}