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