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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/headline.html.twig' %}
  2. {% set tsConfig = config('trustedShopsApp.config') %}
  3. {% set tsChannelId = context.salesChannel.id ?? null %}
  4. {% set product = page.product %}
  5. {% if page.product.parentId %}
  6.     {% if page.extensions.tsParentProduct is defined and not null %}
  7.         {% set product = page.extensions.tsParentProduct %}
  8.     {% endif %}
  9. {% endif %}
  10. {% block page_product_detail_manufacturer %}
  11.     {{ parent() }}
  12.     {% if tsConfig[tsChannelId].widgets is defined and expectedMapping[tsChannelId] === tsConfig[tsChannelId].widgets.eTrustedChannelRef %}
  13.         <div class="col-12">
  14.             {% if tsChannelId is not null %}
  15.                 <!-- added by Trusted Shops app: Start -->
  16.                 <div class="row">
  17.                     <div class="col-12">
  18.                         {% for widget in tsConfig[tsChannelId].widgets.children.0.children %}
  19.                             {% if widget.extensions|length > 0 %}
  20.                                 {% for extension in widget.extensions %}
  21.                                     {% if extension.tag is not null and extension.tag is not empty %}
  22.                                         {% sw_include '@Storefront/storefront/includes/extension-assembler.html.twig' with {
  23.                                             extension: extension,
  24.                                             product: product
  25.                                         } %}
  26.                                     {% endif %}
  27.                                 {% endfor %}
  28.                             {% endif %}
  29.                         {% endfor %}
  30.                         {% sw_include '@Storefront/storefront/includes/widget-assembler.html.twig' with {
  31.                             widgets: tsConfig[tsChannelId].widgets.children.0.children,
  32.                             product: product,
  33.                             widgetLocationId: 'wdg-loc-pn'
  34.                         } %}
  35.                     </div>
  36.                 </div>
  37.                 <!-- End -->
  38.             {% endif %}
  39.         </div>
  40.     {% endif %}
  41. {% endblock %}