{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {% extends '@EasyAdmin/page/content.html.twig' %} {% set percentageReductionValue = 0 %} {% set customerValue = 0 %} {% set deliveryDateValue = "" %} {% set processingDateValue = "now"|date("Y-m-d") %} {% set deliveryTypeValue = "on-store" %} {% set paymentMethodValue = 0 %} {% set shippingMethodValue = 0 %} {% set agentValue = 0 %} {% set cityRegionShippingValue = 0 %} {% set cityRegionCollectValue = 0 %} {% set commentValue = "" %} {% set payedAmount = 0 %} {% set totalOrder = 0 %} {% set reductionCoupon = 0 %} {% set codeCoupon = "" %} {% set credit = 0 %} {% set processingCollectTimeValue = "08:00" %} {% set processingShippingTimeValue = "08:00" %} {% set urlSuccessOrder = ea_url().setController('App\\Flexy\\FrontBundle\\Themes\\'~settings.get.assetFolderName~'\\Controller\\ShopAdmin\\Order\\OrderCrudController'). setAction("index") %} {% if order %} {% set payedAmount = order.payedAmount %} {% set customerValue = order.customer.id %} {% set percentageReductionValue = order.reduction %} {% set totalOrder = order.totalAmount %} {% set deliveryDateValue = order.startDeliveryAt|date("Y-m-d") %} {% set processingDateValue = order.startProcessingAt|date("Y-m-d") %} {% set processingCollectTimeValue = order.startProcessingAt|date("H:i") %} {% set processingShippingTimeValue = order.startDeliveryAt|date("H:i") %} {% set deliveryTypeValue = order.deliveryType %} {% set reductionCoupon = order.reductionOnCoupon %} {% if order.coupon %} {% set codeCoupon = order.coupon.code %} {% endif %} {% if order.customerWalletPoints|length > 0 %} {% for customerWalletPoint in order.customerWalletPoints %} {% if customerWalletPoint.points > 0 %} {% set credit = credit + customerWalletPoint.points %} {% endif %} {% endfor %} {% endif %} {% if order.paymentMethod %} {% set paymentMethodValue = order.paymentMethod.id %} {% endif %} {% if order.shippingMethod %} {% set shippingMethodValue = order.shippingMethod.id %} {% endif %} {% if order.agent %} {% set agentValue = order.agent.id %} {% endif %} {% if order.cityRegionCollect %} {% set cityRegionCollect = order.cityRegionCollect.id %} {% endif %} {% if order.cityRegionShipping %} {% set cityRegionShipping = order.cityRegionShipping.id %} {% endif %} {% set commentValue = order.description %} {% endif %} {% block head_stylesheets %} {{parent()}} {% endblock %} {% block main %}
{% if order %}
Modification de la commande {{order}}
{% endif %} {% if is_granted("ROLE_SHIPPING_AGENT") != true %}
{% for categorie in categories %} {% if categorie.parentCategory == null %} {% endif %} {% endfor %}
{% for categorie in categories %} {% if categorie.parentCategory != null %} {% endif %} {% endfor %}
{% for product in products %}
{% set price = product.price %} {% if product.reduction %} {% set price = product.price - product.reduction %} {% endif %}
{{product.name}}

{{price}} DH

{% endfor %}
{% endif %}

Panier

{{render(url("select_customer_ajax"))}}
Afficher les details Reduire
Total produits:
Montant á payer : 0 DH
{% endblock %} {% block body_javascript %} {{parent()}} {% endblock body_javascript %}