templates/partials/product_no_quick_view.html.twig line 1

Open in your IDE?
  1.     <div class="product" >
  2.         <div class="product_img">
  3.             <a href="">
  4.                 <img   src="{{ asset('assets/uploads/products/'~product.image)|imagine_filter('my_thumb_') }}" id="k{{ product.id }}cart" alt="product_img1">
  5.             </a>
  6.             <div class="product_action_box">
  7.                 <ul class="list_none pr_action_btn">
  8.                     <li class="d-none add-to-cart"><a class="add-to-cart_"  data-parent="#k{{ product.id }}cart" data-url="{{ path('cart_add_file_js',{'id':product.id}) }}" id="product{{ product.id }}" data-id="#product{{ product.id }}"><i class="icon-basket-loaded"></i> Add To Cart</a></li>
  9.                     <li><a href="" class="d-none"><i class="icon-shuffle"></i></a></li>
  10.                     <li><a  href="{{ path('product_details',{'slug':product.slug}) }}"><i class="icon-magnifier-add"></i></a></li>
  11.                     <li><a href="#" class="d-none"><i class="icon-heart"></i></a></li>
  12.                 </ul>
  13.             </div>
  14.         </div>
  15.         <div class="product_info" >
  16.             <h6 class="product_title text-center"><a class="font-monospace" href="{{ path('product_details',{'slug':product.slug}) }}">{{ product.name }}</a></h6>
  17.             <div class="product_price">
  18.                 <div class="price text-center font-weight-normal">
  19.                     {{ app.session.get('devise') ?? app.request.server.get('devise')  }} {{ product.price }}
  20.                     {% if product.maxPrice > 0 %}
  21.                         - <span class="text-dark">{{ app.session.get('devise') ?? app.request.server.get('devise')  }} {{ product.maxPrice }} </span>
  22.                     {% endif %}
  23.                 </div>
  24.                 {% if product.isPromotionalPrice %}
  25.                     <div class="on_sale_ text-center">
  26.                         <del class="text-danger">{{ app.session.get('devise') ?? app.request.server.get('devise')  }} {{ product.reelPrice }}</del>
  27.                         <span>{{ product.pourcentagePromotionalPrice }} % Off</span>
  28.                     </div>
  29.                 {% else %}
  30.                     <div class="on_sale_ text-center">#######</div>
  31.                 {% endif %}
  32.                 <div class=" text-info text-center font-weight-normal">(min-order) {{ product.minCommande }}</div>
  33.             </div>
  34.             <div class="rating_wrap justify-content-center">
  35.                 <div class="rating">
  36.                     {% set note = 0 %}
  37.                     {% set totalRate = 5 * product.reviewsProducts|length %}
  38.                     {% for review in product.reviewsProducts  %}
  39.                         {% set note = review.note + note %}
  40.                     {% endfor %}
  41.                     <div class="product_rate" style="width:{{ totalRate > 0 ? ((note/totalRate) * 100):0 }}%"></div>
  42.                 </div>
  43.                 <span class="rating_num">{{ product.reviewsProducts|length }}</span>
  44.             </div>
  45.             <div class="pr_desc">
  46.                 <p>{{ product.description }}</p>
  47.             </div>
  48.             <div class="pr_switch_wrap">
  49.                 <div class="product_color_switch">
  50.                     {% for color in product.colors  %}
  51.                         <span data-color="{{ color.hexadecimal }}"></span>
  52.                     {% endfor %}
  53.                 </div>
  54.             </div>
  55.         </div>
  56.     </div>