templates/Shop/includes/recentlyViewedProducts.html.twig line 1

Open in your IDE?
  1. <section class="section product-slider pb-0">
  2.     <div class="container mb-3">
  3.         <div class="row">
  4.             <div class="section-header col-12">
  5.                 <h2 class="text-transform-none">{{ 'product-detail.recenteviewed_transalations' | trans }}</h2>
  6.             </div>
  7.         </div>
  8.         <div class="productSlider grid-products">
  9.             {% for product in lastVisitedProducts | slice(1) %}
  10.                 {% if product is not null %}
  11.                     <div class="item">
  12.                         <!--Start Product Image-->
  13.                         <div class="product-image">
  14.                             <!--Start Product Image-->
  15.                             {% set imageRecentlyViewed  = product.getFirstImageAsset() %}
  16.                             {% set linkDetailRecentlyViewed = app_product_generate_link(product, { 'document' : document, 'prefix': prefix } , {}) %}
  17.                             <a href="{{ linkDetailRecentlyViewed }}" class="product-img">
  18.                                 {% if imageRecentlyViewed is not null %}
  19.                                     <!-- image -->
  20.                                     <img class="primary blur-up lazyload" data-src="{{ imageRecentlyViewed.thumbnail('ProductImages') }}" src="{{ imageRecentlyViewed.thumbnail('ProductImages') }}" alt="image" title="" style="height: 150px;width: 150px">
  21.                                     <!-- End image -->
  22.                                     <!-- Hover image -->
  23.                                     <img class="hover blur-up lazyload" data-src="{{ imageRecentlyViewed.thumbnail('ProductImages') }}" src="{{ imageRecentlyViewed.thumbnail('ProductImages') }}" alt="image" title="" style="height: 150px;width: 150px">
  24.                                     <!-- End hover image -->
  25.                                 {% endif %}
  26.                             </a>
  27.                             <!--End Product Image-->
  28.                         </div>
  29.                         <!--End Product Image-->
  30.                         <!--Start Product Details-->
  31.                         <div class="product-details text-center">
  32.                             <!--Product Name-->
  33.                             <div class="product-name">
  34.                                 <a href="product-layout1.html">{{ product.getName }}</a>
  35.                             </div>
  36.                             <!--End Product Name-->
  37.                             <!--Product Price-->
  38.                             {% set defaultPriceRecentlyProduct = app_product_default_price(product) %}
  39.                             <div class="product-price">
  40.                                 <span class="price">{{ defaultPriceRecentlyProduct }}€</span>
  41.                             </div>
  42.                             <!--End Product Price-->
  43.                         </div>
  44.                         <!--End Product Details-->
  45.                     </div>
  46.                 {% endif %}
  47.             {% endfor %}
  48.         </div>
  49.     </div>
  50. </section>