custom/plugins/KayloBasicTheme/src/Resources/views/storefront/page/product-detail/index.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/base.html.twig' %}
  2. {% block base_head %}
  3.     {% sw_include '@Storefront/storefront/page/product-detail/meta.html.twig' %}
  4. {% endblock %}
  5. {% block base_content %}
  6.     {% block page_product_detail %}
  7.         <div class="product-detail"
  8.              itemscope
  9.              itemtype="https://schema.org/Product">
  10.             {% block page_product_detail_inner %}
  11.                 {% block page_product_detail_content %}
  12.                     <div class="product-detail-content">
  13.                         {% block page_product_detail_headline %}
  14.                             <div class="row align-items-center product-detail-headline">
  15.                                 {% sw_include '@Storefront/storefront/page/product-detail/headline.html.twig' %}
  16.                             </div>
  17.                         {% endblock %}
  18.                         {% set mediaItems = page.product.media.media %}
  19.                         {% block page_product_detail_main %}
  20.                             <div class="row product-detail-main">
  21.                                 {% block page_product_detail_media %}
  22.                                     <div class="col-lg-7 product-detail-media">
  23.                                         {% if page.product.media %}
  24.                                             {% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
  25.                                                 'mediaItems': mediaItems,
  26.                                                 'zoom': true,
  27.                                                 'zoomModal': true,
  28.                                                 'displayMode': 'contain',
  29.                                                 'gutter': 5,
  30.                                                 'minHeight': '430px',
  31.                                                 'navigationArrows': 'inside',
  32.                                                 'navigationDots': 'inside',
  33.                                                 'galleryPosition': 'left',
  34.                                                 'isProduct': true,
  35.                                                 'fallbackImageTitle': page.product.translated.name,
  36.                                                 'startIndexThumbnails': page.product.cover.position + 1,
  37.                                                 'startIndexSlider': page.product.cover.position + 1,
  38.                                                 'keepAspectRatioOnZoom': false
  39.                                             } %}
  40.                                         {% endif %}
  41.                                     </div>
  42.                                 {% endblock %}
  43.                                 {% block page_product_detail_buy %}
  44.                                     <div class="col-lg-5 product-detail-buy">
  45.                                         {% sw_include '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
  46.                                     </div>
  47.                                 {% endblock %}
  48.                             </div>
  49.                         {% endblock %}
  50.                     </div>
  51.                 {% endblock %}
  52.                 {% block page_product_detail_tabs %}
  53.                     <div class="product-detail-tabs">
  54.                         {% sw_include '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
  55.                     </div>
  56.                 {% endblock %}
  57.                 {% block page_product_detail_cross_selling %}
  58.                     {% if page.crossSellings.elements is defined and page.crossSellings.elements|filter(item => item.total > 0)|length > 0 %}
  59.                         <div class="product-detail-tabs product-detail-cross-selling">
  60.                             {% sw_include '@Storefront/storefront/page/product-detail/cross-selling/tabs.html.twig' with {
  61.                                 crossSellings: page.crossSellings
  62.                             } %}
  63.                         </div>
  64.                     {% endif %}
  65.                 {% endblock %}
  66.             {% endblock %}
  67.         </div>
  68.     {% endblock %}
  69. {% endblock %}