custom/apps/TrustedShopsEasyIntegrationS6/Resources/views/storefront/page/product-detail/tabs.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
  2. {% set tsChannelId = context.salesChannel.id ?? null %}
  3. {% set widgetLocationId = "wdg-loc-pp" %}
  4. {% block page_product_detail_tabs_navigation_review %}
  5.     {{ parent() }}
  6.     {% if tsChannelId is not null %}
  7.         {% if tsConfig[tsChannelId].widgets is defined and expectedMapping[tsChannelId] === tsConfig[tsChannelId].widgets.eTrustedChannelRef %}
  8.             {% set tsChannelConfig = tsConfig[tsChannelId] %}
  9.             {% set flag = 0 %}
  10.             {% for widget in tsConfig[tsChannelId].widgets.children.0.children %}
  11.                 {% if widget.widgetLocation.id == widgetLocationId %}
  12.                     {% set flag = 1 %}
  13.                 {% endif %}
  14.             {% endfor %}
  15.             {% if flag %}
  16.                 <!-- added by Trusted Shops app: Start -->
  17.                 <li class="nav-item">
  18.                     <a class="nav-link product-detail-tab-navigation-link"
  19.                        id="ts-review-tab"
  20.                     {{ dataBsToggleAttr }}="tab"
  21.                     data-toggle="tab"
  22.                     data-bs-toggle="tab"
  23.                     data-offcanvas-tabs="true"
  24.                     href="#ts-review-tab-pane"
  25.                     aria-controls="ts-review-tab-pane"
  26.                     aria-selected="true">
  27.                     {{ "trustedShopsApp.productDetail.reviewTab.name"|trans|sw_sanitize }}
  28.                     <span class="product-detail-tab-navigation-icon">
  29.                         {% sw_icon 'arrow-medium-right' style {'pack':'solid'} %}
  30.                     </span>
  31.                     </a>
  32.                 </li>
  33.                 <!-- End -->
  34.             {% endif %}
  35.         {% endif %}
  36.     {% endif %}
  37. {% endblock %}
  38. {% block page_product_detail_tabs_content_review %}
  39.     {{ parent() }}
  40.     {% if tsChannelId is not null %}
  41.         {% if tsConfig[tsChannelId].widgets is defined and expectedMapping[tsChannelId] === tsConfig[tsChannelId].widgets.eTrustedChannelRef %}
  42.             {% set product = page.product %}
  43.             {% if page.product.parentId %}
  44.                 {% if page.extensions.tsParentProduct is defined and not null %}
  45.                     {% set product = page.extensions.tsParentProduct %}
  46.                 {% endif %}
  47.             {% endif %}
  48.             <!-- added by Trusted Shops app: Start -->
  49.             <div class="tab-pane fade show"
  50.                  id="ts-review-tab-pane"
  51.                  role="tabpanel"
  52.                  aria-labelledby="ts-review-tab">
  53.                 {% sw_include '@Storefront/storefront/page/product-detail/offcanvas/ts-description.html.twig' %}
  54.             </div>
  55.             <!-- End -->
  56.         {% endif %}
  57.     {% endif %}
  58. {% endblock %}