{% extends 'template.html.twig' %} {% block title %}Mon Site Démo - Order index{% endblock %} {% block body %} {% include "nav.html.twig" %} Mon Panier Finaliser ma commande Acceuil Nos produits Création de la commande {{ include('flash.html.twig') }} {{ form_start(orderForm, { 'attr': {'novalidate': 'novalidate'}, 'action': path('app_order_verify'), 'method': 'POST' }) }} {{ form_errors(orderForm) }} {{ form_label(orderForm.transportWay, 'Mode de Livraison', {'label_attr': {'class': 'form-label'}}) }} {{ form_widget(orderForm.transportWay, {'attr': {'class': 'form-select', 'style': 'width: 100%;'}}) }} {{ form_errors(orderForm.transportWay) }} {{ form_row(orderForm.title) }} {{ form_errors(orderForm.title) }} {{ form_row(orderForm.receiverName) }} {{ form_errors(orderForm.title) }} {{ form_row(orderForm.receiverEmail) }} {{ form_errors(orderForm.receiverName) }} {{ form_row(orderForm.receiverPhone) }} {{ form_errors(orderForm.receiverPhone) }} {{ form_row(orderForm.paymentMethod) }} {{ form_errors(orderForm.paymentMethod) }} {{ form_row(orderForm.useSavedAddress) }} {{ form_errors(orderForm.useSavedAddress) }} {{ form_row(orderForm.savedAddress) }} {{ form_errors(orderForm.savedAddress) }} {{ form_row(orderForm.addressTitle) }} {{ form_errors(orderForm.addressTitle) }} {{ form_row(orderForm.receiverAddress) }} {{ form_errors(orderForm.receiverAddress) }} {{ form_row(orderForm.city) }} {{ form_errors(orderForm.city) }} {{ form_row(orderForm.zipCode) }} {{ form_errors(orderForm.zipCode) }} {{ form_row(orderForm.saveAddress) }} {{ form_errors(orderForm.saveAddress) }} Récapitulatif de la Commande {% if cartData.items is not empty %} Id Title Description Picture Prix Quantité Total Supprimer {% for item in cartData.items %} {% if item.product is defined %} {{ item.product.id }} {{ item.product.name }} {{ item.product.description|raw }} {% if item.product.productImages[0] is defined and item.product.productImages[0] is not null %} {% else %} {% endif %} {{ item.product.price }} € {{ item.quantity }} {{ item.product.price * item.quantity }} € {% endif %} {% endfor %} Total de Nombres: {{ cartData.items|map(item => item.quantity)|reduce((carry, qty) => carry + qty, 0) }} Total: {{ cartData.cartTotal }} € {% for item in cartData.items %} {% if item.product is defined %} {{ item.product.name }} {{ item.product.description|raw }} {% if item.product.productImages[0] is defined and item.product.productImages[0] is not null %} {% else %} {% endif %} Prix: {{ item.product.price }} € Quantité: {{ item.quantity }} Total: {{ item.product.price * item.quantity }} € {% endif %} {% endfor %} Total de Nombres: {{ cartData.items|map(item => item.quantity)|reduce((carry, qty) => carry + qty, 0) }} Total: {{ cartData.cartTotal }} € {% else %} Aucun produit dans le panier. {% endif %} Ajouter des produits {{ isModify ? 'Enregistrer la modification' : 'Valider la commande' }} {{ form_row(orderForm._token) }} {{ form_end(orderForm) }} {% include "footer.html.twig" %} {% endblock %}
{{ item.product.description|raw }}
{% if item.product.productImages[0] is defined and item.product.productImages[0] is not null %} {% else %} {% endif %}
Prix: {{ item.product.price }} €
Quantité: {{ item.quantity }}
Total: {{ item.product.price * item.quantity }} €
Total de Nombres: {{ cartData.items|map(item => item.quantity)|reduce((carry, qty) => carry + qty, 0) }}
Total: {{ cartData.cartTotal }} €
Aucun produit dans le panier.