vendor/shopware/storefront/Resources/views/storefront/component/product/properties.html.twig line 1

Open in your IDE?
  1. {% block component_product_properties_inner %}
  2.     <div class="product-detail-properties">
  3.         {% block component_product_properties_container %}
  4.             <div class="row product-detail-properties-container">
  5.                 <div class="col-md-10 col-lg-6">
  6.                     {% block component_product_properties_table %}
  7.                         <table class="table table-striped product-detail-properties-table">
  8.                             <tbody>
  9.                             {# @var product \Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity #}
  10.                             {% for group in product.sortedProperties %}
  11.                                 {% block component_product_properties_table_row %}
  12.                                     <tr class="properties-row">
  13.                                         {% block component_product_properties_item_label %}
  14.                                             <th class="properties-label">{{ group.translated.name|e }}:</th>
  15.                                         {% endblock %}
  16.                                         {% block component_product_properties_item_value %}
  17.                                             <td class="properties-value">
  18.                                                 {% apply spaceless %}
  19.                                                     {% for option in group.options %}
  20.                                                         {% set i = ( i | default(0) ) + 1 %}
  21.                                                         <span>{% if i > 1 %}, {% endif %}{{ option.translated.name|e }}</span>
  22.                                                     {% endfor %}
  23.                                                 {% endapply %}
  24.                                             </td>
  25.                                         {% endblock %}
  26.                                     </tr>
  27.                                 {% endblock %}
  28.                             {% endfor %}
  29.                             </tbody>
  30.                         </table>
  31.                     {% endblock %}
  32.                 </div>
  33.             </div>
  34.         {% endblock %}
  35.     </div>
  36. {% endblock %}