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

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