custom/plugins/SimaxThemeKara/src/Resources/views/storefront/page/product-detail/kara-properties.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/utilities/offcanvas.html.twig' %}
  2. {% block utilities_offcanvas_content %}
  3.     {% if page.product.sortedProperties|length > 0 %}
  4.         <div class="product-detail-properties">
  5.             {% block page_product_detail_properties_container %}
  6.                 {% block page_product_detail_properties_title %}
  7.                     <div class="h3 product-detail-properties-title">
  8.                         {{ 'Kara.detail.tabsProperties'|trans|sw_sanitize }} "{{ page.product.translated.name }}"
  9.                     </div>
  10.                 {% endblock %}
  11.                 <div class="row product-detail-properties-container">
  12.                     <div class="col-md-10 col-lg-6">
  13.                         {% block page_product_detail_properties_table %}
  14.                             <table class="table table-striped product-detail-properties-table">
  15.                                 <tbody>
  16.                                 {# @var product \Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity #}
  17.                                 {% for group in page.product.sortedProperties %}
  18.                                     {% block page_product_detail_properties_table_row %}
  19.                                         <tr class="properties-row">
  20.                                             {% block page_product_detail_properties_item_label %}
  21.                                                 <th class="properties-label">{{ group.translated.name|e }}:</th>
  22.                                             {% endblock %}
  23.                                             {% block page_product_detail_properties_item_value %}
  24.                                                 <td class="properties-value">
  25.                                                     {% apply spaceless %}
  26.                                                         {% for option in group.options %}
  27.                                                             {% set i = ( i | default(0) ) + 1 %}
  28.                                                             <span>{% if i > 1 %}, {% endif %}{{ option.translated.name|e }}</span>
  29.                                                         {% endfor %}
  30.                                                     {% endapply %}
  31.                                                 </td>
  32.                                             {% endblock %}
  33.                                         </tr>
  34.                                     {% endblock %}
  35.                                 {% endfor %}
  36.                                 </tbody>
  37.                             </table>
  38.                         {% endblock %}
  39.                     </div>
  40.                 </div>
  41.             {% endblock %}
  42.         </div>
  43.     {% endif %}
  44. {% endblock %}