custom/plugins/TcinnThemeWareLiving/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. {# ThemeWare® HC-Architecture® via configuration #}
  3. {# TODO: prüfen... #}
  4. {# ---------------- START: SET TEMPLATE VARS ---------------- #}
  5. {# ThemeWare: Set theme variables #}
  6. {% set twtProductDetailCrossSellingShow = theme_config('twt-product-detail-cross-selling-show') %}
  7. {% set twtProductDetailThumbnailsPosition = theme_config('twt-product-detail-thumbnails-position') %}
  8. {# ---------------- END: SET TEMPLATE VARS ---------------- #}
  9. {# HC-Architecture @Doku #}
  10. {% block page_product_detail_media %}
  11.     {# ThemeWare: Gallery-slider-thumbnails #}
  12.     {# TODO: Add variables and configs... #}
  13.     {% if twtProductDetailThumbnailsPosition == 2 %}
  14.         <div class="col-lg-7 product-detail-media">
  15.              {% if page.product.media %}
  16.                   {% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
  17.                       'mediaItems': mediaItems,
  18.                       'zoom': true,
  19.                       'zoomModal': true,
  20.                       'displayMode': 'contain',
  21.                       'gutter': 5,
  22.                       'minHeight': '430px',
  23.                       'navigationArrows': 'inside',
  24.                       'navigationDots': 'inside',
  25.                       'galleryPosition': 'underneath',
  26.                       'isProduct': true,
  27.                       'fallbackImageTitle': page.product.translated.name,
  28.                       'startIndexThumbnails': 1,
  29.                       'startIndexSlider': 1,
  30.                       'keepAspectRatioOnZoom': false
  31.                   } %}
  32.              {% endif %}
  33.         </div>
  34.     {% else %}
  35.         {# Default block #}
  36.         {{ parent() }}
  37.     {% endif %}
  38. {% endblock %}
  39. {# ThemeWare: Delete div if no cross selling products available #}
  40. {# TODO: Ab Shopware 6.4.7 entfernt Shopware leere Cross-Selling Blöcke endlich selber. #}
  41. {# block page_product_detail_cross_selling #}