custom/plugins/TdsOrlob/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 page_product_detail %}
  3.         <div class="product-detail{% if page.product.customFields.custom_article_new_design %} new-design{% endif %}"
  4.                 itemscope
  5.                 itemtype="https://schema.org/Product">
  6.                     <div class="product-detail-content">
  7.                         {% if not page.product.customFields.custom_article_new_design %}
  8.                                 <div class="row align-items-center product-detail-headline">
  9.                                     {% sw_include '@Storefront/storefront/page/product-detail/headline.html.twig' %}
  10.                                 </div>
  11.                         {% endif %}
  12.                         {% set mediaItems = page.product.media.media %}
  13.                             <div class="row product-detail-main">
  14.                                     <div class="col-lg-8 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': 'left',
  26.                                                 'isProduct': true,
  27.                                                 'fallbackImageTitle': page.product.translated.name,
  28.                                                 'startIndexThumbnails': page.product.cover.position + 1,
  29.                                                 'startIndexSlider': page.product.cover.position + 1
  30.                                             } %}
  31.                                         {% endif %}
  32.                                         {% if page.product.categoryTree and shopware.config.TdsOrlob.config.salesCategoryId
  33.                                             and shopware.config.TdsOrlob.config.salesCategoryId in page.product.categoryTree %}
  34.                                             <div class="sales-badge">
  35.                                                 <img src="{{ asset('assets/sales-badge.png', '@TdsOrlob') }}" alt="Sale" class="sales-badge-icon"/>
  36.                                             </div>
  37.                                         {% endif %}
  38.                                         {% if page.product.categoryTree and shopware.config.TdsOrlob.config.newCategoryId
  39.                                             and shopware.config.TdsOrlob.config.newCategoryId in page.product.categoryTree %}
  40.                                             <div class="new-badge">
  41.                                                 <img src="{{ asset('assets/new-badge.png', '@TdsOrlob') }}" alt="New" class="new-badge-icon"/>
  42.                                             </div>
  43.                                         {% endif %}
  44.                                     </div>
  45.                                     <div class="col-lg-4 product-detail-buy">
  46.                                         {% sw_include '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
  47.                                     </div>
  48.                             </div>
  49.                     </div>
  50.                     <div class="product-detail-tabs">
  51.                         {% sw_include '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
  52.                     </div>
  53.                     {% if page.crossSellings.elements is defined and page.crossSellings.elements|filter(item => item.total > 0)|length > 0 %}
  54.                         <div style="{% if page.product.customFields.custom_article_color %}background-color: {{ page.product.customFields.custom_article_color }}B3;{% endif %}" 
  55.                             class="product-detail-tabs product-detail-cross-selling{% if page.product.customFields.custom_article_new_design %} new-design{% endif %}">
  56.                             <div class="container">
  57.                                 {% sw_include '@Storefront/storefront/page/product-detail/cross-selling/tabs.html.twig' with {
  58.                                     crossSellings: page.crossSellings
  59.                                 } %}
  60.                             </div>
  61.                         </div>
  62.                     {% endif %}
  63.         </div>
  64. {% endblock %}
  65.