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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/content/product-detail.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][activeLanguageIsoCode].widgets is defined and tsConfig[tsChannelId][activeLanguageIsoCode].widgets is not null %}
  8.             {% if tsConfig[tsChannelId][activeLanguageIsoCode].widgets is defined and expectedMapping[tsChannelRef] === tsConfig[tsChannelId][activeLanguageIsoCode].widgets.eTrustedChannelRef %}
  9.                 {% set widgetConfig = tsConfig[tsChannelId][activeLanguageIsoCode].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 %}