custom/apps/TrustedShopsEasyIntegrationS6/Resources/views/storefront/component/product/card/box-standard.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
  2. {% block component_product_box_name %}
  3.     {{ parent() }}
  4.     {% set tsConfig = config('trustedShopsApp.config') %}
  5.     {% set tsChannelId = context.salesChannel.id ?? null %}
  6.     {% if tsChannelId is not null %}
  7.         {% if expectedMapping is null %}
  8.             {% set expectedMapping = [] %}
  9.             {% foreach tsConfig.mappedChannels as mappedChannel %}
  10.                 {% set expectedMapping = expectedMapping|merge({ (mappedChannel.salesChannelRef): mappedChannel.eTrustedChannelRef}) %}
  11.             {% endforeach %}
  12.         {% endif %}
  13.         {% if tsConfig[tsChannelId].widgets is defined and expectedMapping[tsChannelId] === tsConfig[tsChannelId].widgets.eTrustedChannelRef %}
  14.             {% if product.parentId and product.extensions.tsParentProduct is defined %}
  15.                 {% set product = product.extensions.tsParentProduct %}
  16.             {% endif %}
  17.             <div class="ts-rating" style="overflow: hidden">
  18.                 <!-- added by Trusted Shops app: Start -->
  19.                 {% sw_include '@Storefront/storefront/includes/widget-assembler.html.twig' with {
  20.                     widgets: tsConfig[tsChannelId].widgets.children.0.children,
  21.                     product: product,
  22.                     widgetLocationId: 'wdg-loc-pl'
  23.                 } %}
  24.                 <!-- End -->
  25.             </div>
  26.         {% endif %}
  27.     {% endif %}
  28. {% endblock %}