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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/utilities/offcanvas.html.twig' %}
  2. {% block utilities_offcanvas_content %}
  3.     {% block page_product_detail_ts_review_container %}
  4.         <div class="product-detail-ts-review-tab tab-pane-container">
  5.             {# {% block page_product_detail_ts_review_title %}
  6.                 <div class="h3 product-detail-ts-review-tab-title">
  7.                     {{ "detail.descriptionTitle"|trans|sw_sanitize }} "{{ page.product.translated.name }}"
  8.                 </div>
  9.             {% endblock %} #}
  10.             {% block page_product_detail_ts_review_content %}
  11.                 {# {% block page_product_detail_ts_review_content_text %}
  12.                     <div class="product-detail-ts-review-tab-text"
  13.                          itemprop="description">
  14.                         {{ page.product.translated.description|raw }}
  15.                     </div>
  16.                 {% endblock %} #}
  17.                 {% block page_product_detail_ts_review_content_properties %}
  18.                     {% for widget in tsConfig[tsChannelId].widgets.children.0.children %}
  19.                         {% if widget.widgetLocation.id === widgetLocationId %}
  20.                             {% set widgetTag = '<' ~ widget.tag ~ ' ' ~ widget.attributes.id.attributeName ~ '="'~ widget.attributes.id.value ~'"' %}
  21.                             {% if widget.attributes.productIdentifier is defined %}
  22.                                 {% if widget.attributes.productIdentifier.attributeName === "data-gtin" and product.ean is not null %}
  23.                                     {% set widgetTag = widgetTag ~ ' ' ~ widget.attributes.productIdentifier.attributeName ~ '="'~ product.ean ~'"' %}
  24.                                 {% elseif widget.attributes.productIdentifier.attributeName === "data-mpn" and product.manufacturerNumber is not null %}
  25.                                     {% set widgetTag = widgetTag ~ ' ' ~ widget.attributes.productIdentifier.attributeName ~ '="'~ product.manufacturerNumber ~'"' %}
  26.                                 {% else %}
  27.                                     {% set widgetTag = widgetTag ~ 'data-sku="'~ product.productNumber ~'"' %}
  28.                                 {% endif %}
  29.                             {% endif %}
  30.                             {% set widgetTag = widgetTag ~ '></' ~ widget.tag ~ '>' %}
  31.                             {{ widgetTag|raw }}
  32.                         {% endif %}
  33.                     {% endfor %}
  34.                 {% endblock %}
  35.             {% endblock %}
  36.         </div>
  37.     {% endblock %}
  38. {% endblock %}