templates/front/catalog/product/carousel.html.twig line 1

Open in your IDE?
  1. {% if withWrapper is not defined %}
  2.     {% set withWrapper = false %}
  3. {% endif %}
  4. {% if titleTag is not defined %}
  5.     {% set titleTag = 'div' %}
  6. {% endif %}
  7. {% if withWrapper %}
  8. <div class="product-carousel-ctn">
  9.     <div class="ctn">
  10. {% endif %}
  11. <div class="product-list-ctn">
  12.     {% if title is defined and title %}
  13.     <div class="title-ctn">
  14.         <{{ titleTag }} class="title">{{ title }}</{{ titleTag }}>
  15.         <hr>
  16.     </div>
  17.     {% endif %}
  18.     <ul class="product-list product-carousel">
  19.         {% for p in products %}
  20.             {% if  p.hasPrice(customerMgr.priceContext) %}
  21.                 {% include 'front/catalog/product/view/list-item.html.twig' with {product:p} %}
  22.             {% endif %}
  23.         {% endfor %}
  24.     </ul>
  25. </div>
  26. {% if withWrapper %}
  27.     </div>
  28. </div>
  29. {% endif %}