{% extends "YOUUserBundle::ui.html.twig" %} {% block content_ui %}

Commande N°{{ commande.id }}

du {{ commande.date|date('d/m/Y \à H:i') }}

Total ttc : {{ commande.total|toeuro }}

{% for flashMessage in app.session.flashbag.get('errorCode') %}

{{ flashMessage }}

{% endfor %} {% for boutique in boutiques %} {% if boutique.commande.reduc or boutique.commande.freeShipping %} {# and (boutique.reduction.freeShipping or boutique.reduction.value > 0) #}

{% if boutique.commande.reduc and boutique.commande.reduc > 0 %} Vous avez bénéficié de {{boutique.commande.reduc|toeuro}} de réduction sur la commande ci-dessous. {% endif %} {% if (boutique.commande.reduc and boutique.commande.reduc > 0) and (boutique.commande.freeShipping) %}
{% endif %} {% if boutique.commande.freeShipping %} Vous avez bénéficié des frais de port gratuit sur la commande ci dessous. {% endif %}

{% endif %} {% for key, block in boutique.blocks %}

{{ boutique.commande.boutique.nom }}

{{ block.item|length }} {% if block.type == 'livraison' %} produit{% if block.item|length > 1 %}s{% endif %} livré{% if block.item|length > 1 %}s{% endif %} à votre domicile {% endif %} {% if block.type == 'retrait' %} produit{% if block.item|length > 1 %}s{% endif %} à retirer en magasin {% endif %} {% if block.type == 'service' %} service{% if block.item|length > 1 %}s{% endif %} réservé{% if block.item|length > 1 %}s{% endif %} {% endif %}

{% if block.item[0].statut == 0 %}

Veuillez patienter !

Cette commande est en cours de validation par le vendeur.

{% else %} {% if block.type == 'livraison' %} {% if block.item[0].statut == 1 %}

Colis en préparation !

Votre commande a été prise en charge par le vendeur. Vous serez informé dès que votre colis sera expédié.

{% endif %} {% if block.item[0].statut == 9 %}

Colis expédié !

Vos achats ont été envoyés à votre adresse de livraison.

{% endif %} {% else %} {% if block.item[0].statut == 9 %}

Vous avez retiré tous vos achats chez le vendeur.

Merci de votre confiance et à bientôt !

{% else %} {% if block.item[0].product.decline %} {% set produit = block.item[0].product.declinaison %} {% else %} {% set produit = block.item[0].product %} {% endif %} {% if produit.type == 'material' %} {% if block.retraittype > 1 %}
{% if block.retraittype == 2 %}

Rendez-vous chez le vendeur, quand vous le souhaitez, à partir du {{ produit.material.commandetype.retraitDelais|addtodate(boutique.commande.commande.date|date('U')) }}.

{% endif %} {% if block.retraittype == 3 %} {% set addTime = (produit.material.commandetype.retraitTypeOption*3600)+(produit.material.commandetype.retraitTypeOption2*60) %}

Rendez-vous chez le vendeur, quand vous le souhaitez, a partir de {{ addTime|addtodate(commande.date|date('U'),'H:i') }}.

{% endif %} {% if block.retraittype == 4 %}

Rendez-vous chez le vendeur, dans une des tranches horaires défini ci dessous.

{% endif %} {% if block.item[0].paymentMode == 0 %}

Code secret : {{ block.item[0].code }}

{% else %}

 

{% endif %}
{% else %} {% if block.retraittypeo == 1 %} {% if block.item[0].statut == 1 %}

Veuillez prendre RDV !

Le vendeur va vous proposer une ou plusieurs dates au choix. Pour cela, merci de lui fournir quelques indications :

Quelles sont vos disponibilités pour ce RDV ? Si nécessaire, vous pouvez indiquer une date en particulier. Soyez précis(e) :

Ex : "tous les samedi après-midi" ou bien "chaque jour entre 12h et 14h" ou bien "Le samedi 14 août après 14h"...

{% endif %} {% if block.item[0].statut == 2 %}

Veuillez patienter.

Le vendeur va vous proposer une ou plusieurs dates au choix. Vous serez informé(e) par e-mail.

Vos préférences :

{{ block.item[0].rdv.text }}

{% endif %} {% if block.item[0].statut == 4 %}

Faites votre choix !

Le vendeur vous propose les dates suivantes :

Choisissez une date :

{% endif %} {% endif %} {% if block.retraittypeo == 2 %} {% if block.item[0].statut == 1 %}

Le vendeur attend votre appel !

Vous devez fixer une date de RDV par téléphone :

1

Appeller le :

{{ boutique.commande.boutique.tel }}

2

Utilisez le calendrier pour valider la date de RDV :

{% endif %} {% endif %} {% if block.retraittypeo == 3 %} {% if block.item[0].statut == 1 %}

Le vendeur va vous appeler !

Vous fixerez ensemble une date de RDV. La date s’inscrira ici automatiquement.

{% endif %} {% if block.item[0].statut ==3 %}

Rendez-vous chez le vendeur, le {{ block.item[0].rdv.date|date('d/m/Y \à H:i') }}

{% if block.item[0].paymentMode == 0 %}

Code secret : {{ block.item[0].code }}

{% else %}

 

{% endif %}

Vous pourrez retirer / consommer vos achats chez le vendeur, à la date indiquée ci-dessus.

{% if block.item[0].paymentMode == 0 %}

ATTENTION : sans le code secret, vous ne pourrez pas retirer votre commande. Ne l’oubliez pas !

{% else %}

 

{% endif %}
{% endif %} {% endif %} {% if block.item[0].statut == 3 %}

Rendez-vous chez le vendeur, le {{ block.item[0].rdv.date|date('d/m/Y \à H:i') }}

{% if block.item[0].paymentMode == 0 %}

Code secret : {{ block.item[0].code }}

{% else %}

 

{% endif %}

Vous pourrez retirer / consommer vos achats chez le vendeur, à la date indiquée ci-dessus.

{% if block.item[0].paymentMode == 0 %}

ATTENTION : sans le code secret, vous ne pourrez pas retirer votre commande. Ne l’oubliez pas !

{% else %}

 

{% endif %}
{% endif %} {% endif %} {% endif %} {% if produit.type == 'service' %} {% if block.item[0].statut == 1 %} {% if block.item[0].rdv.type == "proxishop" %}

Veuillez prendre RDV !

Le vendeur va vous proposer une ou plusieurs dates au choix. Pour cela, merci de lui fournir quelques indications :

Quelles sont vos disponibilités pour ce RDV ? Si nécessaire, vous pouvez indiquer une date en particulier. Soyez précis(e) :

Ex : "tous les samedi après-midi" ou bien "chaque jour entre 12h et 14h" ou bien "Le samedi 14 août après 14h"...

{% endif %} {% if (block.item[0].rdv.type == "tel" and block.item[0].rdv.first == "client") %}

Le vendeur attend votre appel !

Vous devez fixer une date de RDV par téléphone :

1

Appeller le :

{{ boutique.commande.boutique.tel }}

2

Utilisez le calendrier pour valider la date de RDV :

{% endif %} {% if (block.item[0].rdv.type == "tel" and block.item[0].rdv.first == "commercant") %}

Le vendeur va vous appeler !

Vous fixerez ensemble une date de RDV. La date s’inscrira ici automatiquement.

{% endif %} {% endif %} {% if block.item[0].statut == 2 %}

Veuillez patienter.

Le vendeur va vous proposer une ou plusieurs dates au choix. Vous serez informé(e) par e-mail.

Vos préférences :

{{ block.item[0].rdv.text }}

{% endif %} {% if block.item[0].statut == 4 %}

Faites votre choix !

Le vendeur vous propose les dates suivantes :

Choisissez une date :

{% endif %} {% if block.item[0].statut == 3 %}

Rendez-vous chez le vendeur, le {{ block.item[0].rdv.date|date('d/m/Y \à H:i') }}

{% if block.item[0].paymentMode == 0 %}

Code secret : {{ block.item[0].code }}

{% else %}

 

{% endif %}

Vous pourrez retirer / consommer vos achats chez le vendeur, à la date indiquée ci-dessus.

{% if block.item[0].paymentMode == 0 %}

ATTENTION : sans le code secret, vous ne pourrez pas retirer votre commande. Ne l’oubliez pas !

{% else %}

 

{% endif %}
{% endif %} {% endif %} {% endif %} {% endif %} {% endif %} {# {% if block.type == 'livraison' %} {% include 'YOUCommercantBundle:Commande:livraison.html.twig' %} {% endif %} {% if block.type == 'retrait' %} {% include 'YOUCommercantBundle:Commande:retraits.html.twig' %} {% endif %} {% if block.type == 'service' %} {% include 'YOUCommercantBundle:Commande:service.html.twig' %} {% endif %} #} {% set livraisonPrice = 0 %} {% set totalBlockPrice = 0 %} {% for item in block.item %} {% if block.type == 'livraison' %} {% set livraisonPrice = livraisonPrice+item.livraisonPrice %} {% set totalBlockPrice = totalBlockPrice+item.livraisonPrice %} {% endif %} {% set totalBlockPrice = totalBlockPrice+item.count*item.prix %} {% set total = item.prix*item.count %} {% endfor %} {% if block.type == 'livraison' %} {% endif %}
Article Quantité Prix unitaire Prix total statut

{{ item.product.titre }} {% if item.panierContent.panierComposition %} - {{item.panierContent.panierComposition.title}} {% endif %} {# orientation #} {% if item.panierContent.panierComposition and (item.panierContent.panierComposition.orientation1 > 0 or item.panierContent.panierComposition.orientation2 > 0 ) %}
Composition : {% if item.panierContent.panierComposition.orientation1 > 0 %} {% if item.panierContent.panierComposition.orientation1 == 2 %} Droite {% else %} Gauche {% endif %} {% endif %} {% if item.panierContent.panierComposition.orientation1 > 0 and item.panierContent.panierComposition.orientation2 > 0 %} | {% endif %} {% if item.panierContent.panierComposition.orientation2 > 0 %} {% if item.panierContent.panierComposition.orientation2 == 2 %} Bas {% else %} Haut {% endif %} {% endif %}
{% endif %} {# options / options avancées #} {% for panierContentOption in item.panierContent.panierContentOptions %}
{{panierContentOption.optionTitle}} : "{{ panierContentOption.name }}"
{% endfor %} {% for panierContentOption in item.panierContent.panierContentAdvancedOptions %}
{{panierContentOption.advancedSubtitle}} : "{{ panierContentOption.name }}"
{% endfor %}

ref. {{ item.product.ref }} - {{ item.size }}

{{ item.count }} {{ item.prix|toeuro }}{{ total|toeuro }} {% if item.statut == 0 %} En cours de validation {% endif %} {% if item.statut > 0 and item.statut < 9 %} {% if item.livreur %} Colis en préparation {% elseif (item.rdv and item.statut < 3) %} RDV à confirmer {% else %} RDV confirmé {% endif %} {% endif %} {% if item.statut == 9 %} {% if item.livreur %} Colis expédié {% elseif item.rdv %} Terminé {% else %} Terminé {% endif %} {% endif %} {% if item.paymentMode == 1 %}
Paiement sur place
{% endif %} {% if item.paymentMode == 2 %}
Paiement à la livraison
{% endif %}
Frais de port {{ livraisonPrice|toeuro }}
TOTAL TTC {{ totalBlockPrice|toeuro }}


{% endfor %} {% endfor %}
{% endblock %} {% block append_javascript %} {{ parent() }} {% endblock %}