templates/commmande/panier/checkout.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block body %}
  3.         {{ form_start(form) }}
  4. <div class="container mb-80 mt-50">
  5.         <div class="row">
  6.                 <div class="col-lg-7">
  7.                         <div class="row">
  8.                                 <h4 class="mb-30">Billing Details</h4>
  9.                                 <div class="row">
  10.                                         <div class="col-lg-12 mb-6 mb-lg-0 pr-lg-4">
  11.                                                 {{ form_row(form.nom) }}
  12.                                                 {{ form_row(form.prenoms) }}
  13.                                                 {{ form_row(form.telephone) }}
  14.                                                 {{ form_row(form.email) }}
  15.                                                 {{ form_row(form.plainPassword) }}
  16.                                         </div>
  17.                                 </div>
  18.                         </div>
  19.                 </div>
  20.                 <div class="col-lg-5">
  21.                         <div class="border p-40 cart-totals ml-30 mb-50">
  22.                                 <div class="d-flex align-items-end justify-content-between mb-30">
  23.                                         <h4>Ma commande</h4>
  24.                                         <h6 class="text-muted">Sous total</h6>
  25.                                 </div>
  26.                                 <div class="divider-2 mb-30"></div>
  27.                                 <div class="table-responsive order_table checkout">
  28.                                         <table class="table no-border">
  29.                                                 <tbody>
  30.                                                 {% for element in elements %}
  31.                                                         <tr>
  32.                                                                 <td class="image product-thumbnail"><img src="{{ asset('uploads/images/produits/') }}{{ element.produit.images|first }}" alt="{{ element.produit.nom }}"></td>
  33.                                                                 <td>
  34.                                                                         <h6 class="w-160 mb-5"><a href="{{ path('app_accueil_show_produit',{slug :element.produit.slug }) }}" class="text-heading">{{ element.produit.nom }}</a></h6>
  35.                                                                 </td>
  36.                                                                 <td>
  37.                                                                         <h6 class="text-muted pl-20 pr-20">x {{ element.quantite  }}</h6>
  38.                                                                 </td>
  39.                                                                 <td>
  40.                                                                         <h6 class="text-brand">{{ (element.produit.Prix * element.quantite)|number_format(0, ' ', ' ')  }} FCFA</h6>
  41.                                                                 </td>
  42.                                                         </tr>
  43.                                                 {% endfor %}
  44.                                                 </tbody>
  45.                                         </table>
  46.                                 </div>
  47.                         </div>
  48.                         <div class="payment ml-30">
  49.                                 <h4 class="mb-30">Methode de paiement</h4>
  50.                                 <div class="payment_option">
  51.                                         {{ form_widget(form.Methodepayement) }}
  52.                                 </div>
  53.                                 <div class="payment-logo d-flex">
  54.                                         <img class="mr-15" src="assets/imgs/theme/icons/payment-paypal.svg" alt="">
  55.                                         <img class="mr-15" src="assets/imgs/theme/icons/payment-visa.svg" alt="">
  56.                                         <img class="mr-15" src="assets/imgs/theme/icons/payment-master.svg" alt="">
  57.                                         <img src="assets/imgs/theme/icons/payment-zapper.svg" alt="">
  58.                                 </div>
  59.                                 <button type="submit" class="btn btn-fill-out btn-block mt-30">Commandez<i class="fi-rs-sign-out ml-15"></i></button>
  60.                         </div>
  61.                 </div>
  62.         </div>
  63. </div>
  64.         {{ form_end(form) }}
  65. {% endblock %}
  66.         {% block javascript %}
  67.                 <script amount="{{ total  }}"
  68.                         callback="commande/checkout"
  69.                         data=""
  70.                         url="<url-vers-votre-logo>"
  71.                         position="right"
  72.                         theme="#0095ff"
  73.                         sandbox="false"
  74.                         key="ce35f5c0266411eba51f139c0a8b857b"
  75.                         src="https://cdn.kkiapay.me/k.js">
  76.                 </script>
  77.         {% endblock %}