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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/index.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.                          {% block page_product_detail_subheadline %}
  19.                             <div class="row align-items-center product-detail-subheadline">
  20.                              <h2>{{ page.product.translated.customFields.migration_attribute_4_subheadline_163 }}</h2>
  21.                             </div>
  22.                         {% endblock %}
  23.                         {% set mediaItems = page.product.media.media %}
  24.                         {% block page_product_detail_main %}
  25.                             <div class="row product-detail-main">
  26.                                 {% block page_product_detail_media %}
  27.                                     <div class="col-lg-3 product-detail-media">
  28.                                         {% if page.product.media %}
  29.                                             {% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
  30.                                                 'mediaItems': mediaItems,
  31.                                                 'zoom': false,
  32.                                                 'zoomModal': true,
  33.                                                 'displayMode': 'contain',
  34.                                                 'gutter': 5,
  35.                                                 'minHeight': '430px',
  36.                                                 'navigationArrows': 'inside',
  37.                                                 'navigationDots': 'inside',
  38.                                                 'galleryPosition': 'left',
  39.                                                 'isProduct': true,
  40.                                                 'fallbackImageTitle': page.product.translated.name,
  41.                                                 'startIndexThumbnails': page.product.cover.position + 1,
  42.                                                 'startIndexSlider': page.product.cover.position + 1
  43.                                             } %}
  44.                                         {% endif %}
  45.                                     </div>
  46.                                 {% endblock %}
  47.                                 {% block page_product_detail_buy %}
  48.                                     <div class="col-lg-9 product-detail-buy">
  49.                                         {% sw_include '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
  50.                                     </div>
  51.                                 {% endblock %}
  52.                             </div>
  53.                         {% endblock %}
  54.                     </div>
  55.                 {% endblock %}
  56.                 {% block page_product_detail_tabs %}
  57.                     <div class="product-detail-tabs">
  58.                         {% sw_include '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
  59.                     </div>
  60.                 {% endblock %}
  61.                 {% block page_product_detail_cross_selling %}
  62.                     <div class="product-detail-tabs product-detail-cross-selling">
  63.                         {% sw_include '@Storefront/storefront/page/product-detail/cross-selling/tabs.html.twig' with {
  64.                             crossSellings: page.crossSellings
  65.                         } only %}
  66.                     </div>
  67.                 {% endblock %}
  68.             {% endblock %}
  69.         </div>
  70.     {% endblock %}
  71. {% endblock %}