custom/plugins/Theme3S/src/Resources/views/storefront/component/product/properties.html.twig line 1

  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. {% block component_product_properties_table %}
  6. <table class="table table-striped product-detail-properties-table">
  7. <tbody>
  8. {# @var product \Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity #}
  9. {% for group in product.sortedProperties %}
  10. {% if group.name != "Logo" %}
  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>
  22. <!-- {% if i > 1 %}, {% endif %} -->
  23. {{ option.translated.name|e }}</span>
  24. {% endfor %}
  25. {% endapply %}
  26. </td>
  27. {% endblock %}
  28. </tr>
  29. {% endblock %}
  30. {% endif %}
  31. {% endfor %}
  32. {% if page.header.activeLanguage.translationCode.code == 'en-GB' %}
  33. {% set artno = "Article number" %}
  34. {% set features = "Features" %}
  35. {% elseif page.header.activeLanguage.translationCode.code == 'nl-NL' %}
  36. {% set artno = "Artikelnummer" %}
  37. {% set features = "Functies" %}
  38. {% elseif page.header.activeLanguage.translationCode.code == 'es-ES' %}
  39. {% set artno = "Número de artículo" %}
  40. {% set features = "Características" %}
  41. {% elseif page.header.activeLanguage.translationCode.code == 'fr-FR' %}
  42. {% set artno = "Numéro d'article" %}
  43. {% set features = "Caractéristiques" %}
  44. {% elseif page.header.activeLanguage.translationCode.code == 'it-IT' %}
  45. {% set artno = "Numero dell'articolo" %}
  46. {% set features = "Caratteristiche" %}
  47. {% else %}
  48. {% set artno = "Artikelnummer" %}
  49. {% set features = "Merkmale" %}
  50. {% endif %}
  51. <tr class="properties-row">
  52. <th class="properties-label">EAN:</th>
  53. <td class="properties-value">{{ product.ean }}</td>
  54. </tr>
  55. <tr class="properties-row">
  56. <th class="properties-label">{{ artno }}:</th>
  57. <td class="properties-value">{{ product.productNumber }}</td>
  58. </tr>
  59. <tr class="properties-row">
  60. <th class="properties-label">{{ features }}:</th>
  61. <td class="properties-value">{{ product.translated.description|raw }}</td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. {% endblock %}
  66. </div>
  67. {% endblock %}
  68. </div>
  69. {% endblock %}