custom/plugins/HyBuys/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_inner %}
  3.         {% block page_product_detail_properties_container %}
  4.                     {% block page_product_detail_properties_table %}
  5.                         <table>
  6.                             <thead></thead>
  7.                             <tbody>
  8.                             {# @var product \Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity #}
  9.                             {% for group in page.product.sortedProperties %}
  10.                                 {% block page_product_detail_properties_table_row %}
  11.                                     <tr>
  12.                                         {% block page_product_detail_properties_item_label %}
  13.                                             <td>{{ group.translated.name|e }}:</td>
  14.                                         {% endblock %}
  15.                                         {% block page_product_detail_properties_item_value %}
  16.                                             <td>
  17.                                                 {% apply spaceless %}
  18.                                                     {% for option in group.options %}
  19.                                                         {% set i = ( i | default(0) ) + 1 %}
  20.                                                         <span>{% if i > 1 %}, {% endif %}{{ option.translated.name|e }}</span>
  21.                                                     {% endfor %}
  22.                                                 {% endapply %}
  23.                                             </td>
  24.                                         {% endblock %}
  25.                                     </tr>
  26.                                 {% endblock %}
  27.                             {% endfor %}
  28.                             </tbody>
  29.                         </table>
  30.                     {% endblock %}
  31.         {% endblock %}
  32. {% endblock %}