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.         {% block page_product_detail_inner %}
  7.             {% block page_product_detail_content %}
  8.                 <div class="product-detail-content">
  9.                     {% if not page.product.customFields.custom_article_new_design %}
  10.                         {% block page_product_detail_headline %}
  11.                             <div class="row align-items-center product-detail-headline">
  12.                                 {% sw_include '@Storefront/storefront/page/product-detail/headline.html.twig' %}
  13.                             </div>
  14.                         {% endblock %}
  15.                     {% endif %}
  16.                     {% set mediaItems = page.product.media.media %}
  17.                     {% block page_product_detail_main %}
  18.                         <div class="row product-detail-main">
  19.                             {% block page_product_detail_media %}
  20.                                 <div class="col-lg-8 product-detail-media">
  21.                                     {% if page.product.media %}
  22.                                         {% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
  23.                                             'mediaItems': mediaItems,
  24.                                             'zoom': true,
  25.                                             'zoomModal': true,
  26.                                             'displayMode': 'contain',
  27.                                             'gutter': 5,
  28.                                             'minHeight': '430px',
  29.                                             'navigationArrows': 'inside',
  30.                                             'navigationDots': 'inside',
  31.                                             'galleryPosition': 'left',
  32.                                             'isProduct': true,
  33.                                             'fallbackImageTitle': page.product.translated.name,
  34.                                             'startIndexThumbnails': page.product.cover.position + 1,
  35.                                             'startIndexSlider': page.product.cover.position + 1
  36.                                         } %}
  37.                                     {% endif %}
  38.                                     {% if page.product.categoryTree and shopware.config.TdsOrlob.config.salesCategoryId
  39.                                         and shopware.config.TdsOrlob.config.salesCategoryId in page.product.categoryTree %}
  40.                                         <div class="sales-badge">
  41.                                             <img src="{{ asset('assets/sales-badge.png', '@TdsOrlob') }}" alt="Sale" class="sales-badge-icon"/>
  42.                                         </div>
  43.                                     {% endif %}
  44.                                     {% if page.product.categoryTree and shopware.config.TdsOrlob.config.newCategoryId
  45.                                         and shopware.config.TdsOrlob.config.newCategoryId in page.product.categoryTree %}
  46.                                         <div class="new-badge">
  47.                                             <img src="{{ asset('assets/new-badge.png', '@TdsOrlob') }}" alt="New" class="new-badge-icon"/>
  48.                                         </div>
  49.                                     {% endif %}
  50.                                 </div>
  51.                             {% endblock %}
  52.                             {% block page_product_detail_buy %}
  53.                                 <div class="col-lg-4 product-detail-buy">
  54.                                     {% sw_include '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
  55.                                 </div>
  56.                             {% endblock %}
  57.                         </div>
  58.                     {% endblock %}
  59.                 </div>
  60.             {% endblock %}
  61.             {% if not page.product.customFields.custom_article_new_design %}
  62.                 {% block page_product_detail_tabs %}
  63.                     <div class="product-detail-tabs">
  64.                         {% sw_include '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
  65.                     </div>
  66.                 {% endblock %}
  67.             {% endif %}
  68.             {% block page_product_detail_cross_selling %}
  69.                 {% if page.crossSellings.elements is defined and page.crossSellings.elements|filter(item => item.total > 0)|length > 0 %}
  70.                     <div style="{% if page.product.customFields.custom_article_color %}background-color: {{ page.product.customFields.custom_article_color }}B3;{% endif %}" 
  71.                          class="product-detail-tabs product-detail-cross-selling{% if page.product.customFields.custom_article_new_design %} new-design{% endif %}">
  72.                         <div class="container">
  73.                             {% sw_include '@Storefront/storefront/page/product-detail/cross-selling/tabs.html.twig' with {
  74.                                 crossSellings: page.crossSellings
  75.                             } %}
  76.                         </div>
  77.                     </div>
  78.                 {% endif %}
  79.             {% endblock %}
  80.         {% endblock %}
  81.     </div>
  82. {% endblock %}
  83.