templates/site/template_3/cart/index.html.twig line 1

Open in your IDE?
  1. {% extends 'baseTemplate_2.html.twig' %}
  2. {% import 'presentation/macroHead.html.twig' as traiteinfoHead %}
  3. {% block title %}Votre panier{% endblock %}
  4. {% block body %}
  5.     <div class="full-width-header header-style1 home1-modifiy">
  6.         <!--Header Start-->
  7.         {{ traiteinfoHead.infoHead(typeSite,objetAbonne,listeMenu,"#000") }}
  8.         <!--Header End-->
  9.     </div>
  10.             <!--Full width header End-->
  11.      <div class="main-content">
  12.      <div class="rs-breadcrumbs breadcrumbs-overlay">
  13.                 <div class="breadcrumbs-img">
  14.                     <br/><br/><br/><br/><br/>
  15.                 </div>
  16.                 <div class="breadcrumbs-text white-color">
  17.                     <h1 class="page-title">{{'site.panier'|trans}}</h1>
  18.                     <ul>
  19.                         <li>
  20.                             <a class="active" href="#">Accueil</a>
  21.                         </li>
  22.                         <li>{{'site.panier'|trans}}</li>
  23.                     </ul>
  24.                 </div>
  25.             </div>
  26.     <!-- Intro Courses -->
  27.             <section class="intro-section  pt-94 pb-100 md-pt-64 md-pb-70">
  28.                 
  29.                <div class="rs-cart orange-color pt-100 pb-100 md-pt-70 md-pb-70">
  30.                 <div class="container">
  31.                     <div class="cart-wrap">
  32.                         <form>
  33.                             <table class="cart-table">
  34.                                 <thead>
  35.                                     <tr>
  36.                                         <th class="product-remove">Action</th>
  37.                                         <th class="product-thumbnail"></th>
  38.                                         <th class="product-name">{{'site.produit'|trans}} </th>
  39.                                         <th class="product-price">{{'site.prod.prix'|trans}} </th>
  40.                                         <th class="product-quantity">{{'site.Qte'|trans}}</th>
  41.                                         <th class="product-subtotal">Total</th>
  42.                                     </tr>
  43.                                 </thead>
  44.                                 <tbody>
  45.     
  46.                                 {% for element in dataPanier %}
  47.                                     {% if element.produit|length != 0 %}
  48.                                         <tr>
  49.                                             <td >
  50.                                             
  51.                                             <a href="#"><i class="fa fa-close"></i></a>
  52.                                             <a href="{{path("cart_add", {id: element.produit.id})}}" class="btn btn-success">
  53.                                                 <i class="fa fa-cart-plus"></i>
  54.                                             </a>
  55.                                             <a href="{{path("cart_remove", {id: element.produit.id})}}" class="btn btn-warning">
  56.                                                 <i class="fa fa-cart-dash"></i>
  57.                                             </a>
  58.                                             <a href="{{path("cart_delete", {id: element.produit.id})}}" class="btn btn-danger">
  59.                                                 <i class="fa fa-cart-x"></i>
  60.                                             </a>
  61.                                             
  62.                                             </td>
  63.                                             <td class="product-thumbnail"><a href="#"><img src="assets/images/shop/4.jpg" alt=""></a></td>
  64.                                             <td class="product-name"><a href="#">{{ element.produit.nomProduit }}</a></td>
  65.                                             <td class="product-price"><span></span>{{ element.prix }}{#{element.produit.price }#}</td>
  66.                                             <td class="product-quantity"><input type="text" class="input-text" value="{{ element.quantite }}" pattern="[0-9]*"></td>
  67.                                             <td class="subtotal"><span class="amount"><span class="symbol"></span>{{ element.quantite * element.prix }}</span></td>
  68.                                         </tr>
  69.                                     {% endif %}
  70.                                  {% else %}
  71.                                     <tr>
  72.                                         <td colspan="6" class="text-center">  {{'site.vide.panier'|trans}} </td>
  73.                                     </tr>
  74.                                 {% endfor %}
  75.                                    
  76.                                     <tr>
  77.                                         <td colspan="6" class="action text-right">
  78.                                             <div class="coupon">
  79.                                                 <input type="text" name="text" placeholder="Coupon code" required="">
  80.                                                 <button type="submit" class="btn-shop apply-btn orange-color"> {{'site.apply.coupon'|trans}}</button>
  81.                                             </div>
  82.                                             <div class="update-cart">
  83.                                                 <button class="btn-shop orange-color">{{'site.mettre.ajout.parnier'|trans}}  </button>
  84.                                             </div>
  85.                                         </td>
  86.                                     </tr>
  87.                                 </tbody>
  88.                             </table>
  89.                         </form>
  90.                         <div class="cart-collaterals pt-70 md-pt-50">
  91.                             <div class="cart-totals">
  92.                                 <h5 class="title mb-25">{{'site.detail'|trans}} {{'site.panier'|trans}}</h5>
  93.                                 <table class="cart-total-table">
  94.                                     <tbody>
  95.                                         <tr class="cart-subtotal">
  96.                                             <th>Subtotal</th>
  97.                                             <td><span class="amount"><span></span>{{ total}}</span></td>
  98.                                         </tr>
  99.                                         <tr class="order-total">
  100.                                             <th>Total</th>
  101.                                             <td><strong><span class="amount"><span></span>{{ total}}</span></strong></td>
  102.                                         </tr>
  103.                                     </tbody>
  104.                                 </table>
  105.                                 <div class="wc-proceed-to-checkout">
  106.                                     <button class="btn-shop orange-color"   data-toggle="modal" data-target=".bd-example-modal-lg"> {{'site.proceed.checkout'|trans}} </button>
  107.                                 </div>
  108.                             </div>
  109.                         </div>
  110.                     </div>
  111.                 </div>
  112.             </div>
  113.             </section>
  114.             <!-- End intro Courses -->
  115.             
  116.      </div>
  117. <div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
  118.   <div class="modal-dialog modal-lg">
  119.     <div class="modal-content">
  120.       
  121.       <div class="modal-header">
  122.         <h5 class="modal-title" id="exampleModalLongTitle">{{'site.checking'|trans}}</h5>
  123.         <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  124.           <span aria-hidden="true">&times;</span>
  125.         </button>
  126.       </div>
  127.       <div class="modal-body">
  128.         <div class="row">
  129.             <div class="col-lg-7">
  130.                 <form>
  131.                     <div class="form-group">
  132.                         <label for="exampleInputEmail1"> {{'site.nom.prenom'|trans}} </label>
  133.                         <input type="text" class="form-control nomPrenoms" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="">
  134.                     </div>
  135.                     <div class="form-group">
  136.                         <label for="exampleInputPassword1"> {{'site.telephone'|trans}} </label>
  137.                         <input type="text" class="form-control tel" id="exampleInputPassword1" placeholder="">
  138.                     </div>
  139.                     <div class="form-group">
  140.                         <label for="exampleInputPassword1"> Email</label>
  141.                         <input type="email" class="form-control email" id="exampleInputPassword1" placeholder="">
  142.                     </div>
  143.                     <div class="form-group">
  144.                         <label for="exampleInputPassword1">{{'site.adresse'|trans}} </label>
  145.                         <input type="text" class="form-control adresse" id="exampleInputPassword1" placeholder="">
  146.                     </div>
  147.                     <div class="form-check">
  148.                     
  149.                         <label class="form-check-label" for="exampleCheck1"> {{'site.menu.certification'|trans}} </label>
  150.                     </div>
  151.                     <div class="form-check">
  152.                         <input type="checkbox" class="form-check-input" id="exampleCheck1">
  153.                         <label class="form-check-label" for="exampleCheck1">Global Gap</label>
  154.                     </div>
  155.                     <div class="form-check">
  156.                         <input type="checkbox" class="form-check-input" id="exampleCheck1">
  157.                         
  158.                         <label class="form-check-label" for="exampleCheck1">Biologique</label>
  159.                     </div>
  160.                     <div class="form-check">
  161.                         <input type="checkbox" class="form-check-input" id="exampleCheck1">
  162.                         
  163.                         <label class="form-check-label" for="exampleCheck1">Autres</label>
  164.                     </div>
  165.                     
  166.                 </form>
  167.             </div>
  168.             <div class="col-lg-5">
  169.                 <table class="cart-table" style="width : 100%">
  170.                     <thead>
  171.                         <tr>
  172.                             
  173.                            
  174.                             <th class="product-name">{{'site.produit'|trans}} </th>
  175.                             <th class="product-price">{{'site.prod.prix'|trans}}</th>
  176.                             <th class="product-quantity">Qte</th>
  177.                             <th class="product-subtotal">Total</th>
  178.                         </tr>
  179.                     </thead>
  180.                     <tbody>
  181.                     {% for element in dataPanier %}
  182.                         {% if element.produit|length != 0 %}
  183.                             <tr>
  184.                                
  185.                                 
  186.                                 <td class="product-name"><a href="#">{{ element.produit.nomProduit }}</a></td>
  187.                                 <td class="product-price"><span></span>{{ element.prix }} {#{element.produit.price }#}</td>
  188.                                 <td class="product-quantity">{{ element.quantite }}</td>
  189.                                 <td class="subtotal"><span class="amount"><span class="symbol"></span>{{ element.quantite * element.prix }}</span></td>
  190.                             </tr>
  191.                         {% endif %}
  192.                         {% else %}
  193.                         <tr>
  194.                             <td colspan="6" class="text-center">{{'site.vide.panier'|trans}}</td>
  195.                         </tr>
  196.                     {% endfor %}
  197.                         
  198.                         
  199.                     </tbody>
  200.                 </table>
  201.             </div>
  202.         </div>
  203.       </div>
  204.       <div class="modal-footer">
  205.             <div class="form-check">
  206.                 <input type="checkbox" class="form-check-input" id="exampleCheck1">
  207.                 <label class="form-check-label" for="exampleCheck1">{{'site.communique.whatsapp'|trans}} </label>
  208.             </div>
  209.             <button type="button" class="btn btn-secondary" data-dismiss="modal"> {{'site.fermer'|trans}}</button>
  210.             <button type="button" class="btn btn-primary btValiderOrder">{{'site.valider'|trans}} </button>
  211.       </div>
  212.     </div>
  213.     </div>
  214.   </div>
  215. </div>   
  216.     
  217. {% endblock %}