custom/apps/TrustedShopsEasyIntegrationS6/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 base_head %}
  3.     {{ parent() }}
  4.     {# {% set tsConfig = config('trustedShopsApp.config') %} #}
  5.     {% set tsChannelId = context.salesChannel.id ?? null %}
  6.     {% if tsChannelId is not null %}
  7.         {% if tsConfig[tsChannelId].widgets is defined and expectedMapping[tsChannelId] === tsConfig[tsChannelId].widgets.eTrustedChannelRef %}
  8.             {% if tsConfig[tsChannelId].widgets is defined and tsConfig[tsChannelId].widgets is not null %}
  9.                 {% set widgetConfig = tsConfig[tsChannelId].widgets.children.0 %}
  10.                 {% sw_include '@Storefront/storefront/includes/script-assembler.html.twig' with {
  11.                     scriptConfig: widgetConfig
  12.                 } %}
  13.             {% endif %}
  14.         {% endif %}
  15.     {% endif %}
  16. {% endblock %}