templates/front/includes/produits/produit-cadre.html.twig line 1

Open in your IDE?
  1. <div class="produit-cadre bg-white border mt-3 mb-5 p-4 pb-4 text-center position-relative">
  2.     {% if product.isPromoted or product.isUsed %}
  3.         <div class="produit-label">
  4.             <span class="sale lb-item">%</span>
  5.         </div>
  6.         <!-- /.produit-label -->
  7.     {% endif %}
  8.     {% if product.isPreOrder %}
  9.         <div class="produit-label">
  10.             <span class="sale lb-item" style="font-size: 12px;">Préco</span>
  11.         </div>
  12.         <!-- /.produit-label -->
  13.     {% endif %}
  14.     <a href="{{ path('produit', { 'slug' : product.slug }) }}" class="position-relative d-block">
  15.         <span class="produit-overlay position-absolute d-block">
  16.             <i class="fa fa-search"></i>
  17.         </span>
  18.         <img src="{{ product.image ?? '/gfx/no-img.jpg' }}" class="img-fluid">
  19.     </a>
  20.     <div class="produit-cadre-description mt-4 mb-4">
  21.         <span class="text-uppercase font-weight-bold d-block dotwrapper"
  22.               style="min-height: 48px;">{{ product.name }}</span>
  23.         <span class="d-block text-black-30 dotwrapper">
  24.             {{ product.brand ? product.brand.name : "&nbsp;" }}
  25.         </span>
  26.         {% if sales_is_enable() %}
  27.             <span class="font-weight-bold h5 d-block text-danger mt-2">
  28.                 {% if product.isPromoted %}
  29.                     <span class="small mr-2 text-black-30 text-nowrap">
  30.                         <s>
  31.                             {{ product.priceHTVA | number_format(2, ',', ' ') }}€
  32.                         </s>
  33.                     </span>
  34.                 {% endif %}
  35.                 <span class="text-nowrap">{{ product.actualPriceHTVA | number_format(2, ',', ' ') }} € <span
  36.                             style="font-size: 12px!important;; line-height: 12px!important;">HTVA</span>
  37.                 </span>
  38.             </span>
  39.         {% endif %}
  40.         {% if product.stock is same as(0) %}
  41.             <a href="{{ path('produit', { 'slug' : product.slug }) }}"
  42.                class="btn btn-dark btn-panier btn-stock-epuise position-absolute">
  43.                 <span class="d-block">
  44.                     Stock épuisé
  45.                 </span>
  46.             </a>
  47.         {% endif %}
  48.     </div>
  49.     <!-- /.produit-cadre-description -->
  50.     {% if sales_is_enable() and product.stock is not same as(0) %}
  51.         <a href="javascript:void(0);" class="btn btn-danger btn-panier text-uppercase position-absolute  hvr-bounce-in"
  52.            data-toggle="tooltip" data-placement="top" title="Ajouter à votre panier">
  53.         <span class="d-block" data-toggle="modal" data-target="#modal-add-panier"
  54.               data-product-id='{{ product.id }}' {% if product.isPreOrder %}style="font-size: 12px;"{% endif %}>
  55.             <i class="fa fa-shopping-cart mr-2"></i>
  56.             {% if product.isPreOrder %}Précommande{% else %}Panier{% endif %}
  57.         </span>
  58.         </a>
  59.     {% endif %}
  60. </div>
  61. <!-- /.produit-cadre -->