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

Open in your IDE?
  1. {% block page_product_detail_custom_fields_inner %}
  2.         {% block page_product_detail_custom_fields_container %}
  3.             <div class="row product-detail-custom-fields-container">
  4.                 <div class="col-md-10 col-lg-6">
  5.                     {% block page_product_detail_custom_fields_table %}
  6.                         <table class="table product-detail-custom-fields-table">
  7.                             <tbody>
  8.                             {# @var product \Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity #}
  9.                             {#}
  10.                             {% for key, group in page.product.customFields %}
  11.                                 {% if not (('migration' in key) or ('video' in key)) %}
  12.                                     {% block page_product_detail_custom_fields_table_row %}
  13.                                         <tr class="custom-fields-row">
  14.                                             {% block page_product_detail_custom_fields_item_label %}
  15.                                                 <th class="custom-fields-label">{{ ('customFields.' ~ key) |trans|sw_sanitize }}:</th>
  16.                                             {% endblock %}
  17.                                             {% block page_product_detail_custom_fields_item_value %}
  18.                                                 {% if not group is iterable %}
  19.                                                 <td class="custom-fields-value">{{ group }}</td>
  20.                                                 {% endif %}
  21.                                             {% endblock %}
  22.                                         </tr>
  23.                                     {% endblock %}
  24.                                 {% endif %}
  25.                             {% endfor %}
  26.                             #}
  27.                                 <tr class="custom-fields-row">
  28.                                         <th class="custom-fields-label">Author</th>
  29.                                         <td class="custom-fields-value">{{ page.product.customFields.custom_product_author }}</td>
  30.                                 </tr>
  31.                                 <tr class="custom-fields-row">
  32.                                         <th class="custom-fields-label">Publisher</th>
  33.                                         <td class="custom-fields-value"><a href="/All/?manufacturer={{ page.product.manufacturer.id }}">{{ page.product.manufacturer.name }}</a></td>
  34.                                 </tr>
  35.                                 <tr class="custom-fields-row">
  36.                                         <th class="custom-fields-label">ISBN</th>
  37.                                         <td class="custom-fields-value">{% if not(page.product.customFields.custom_product_isbn13 == '0') %} {{page.product.customFields.custom_product_isbn13 }} {% endif %}</td>
  38.                                 </tr>
  39.                                 <tr class="custom-fields-row">
  40.                                         <th class="custom-fields-label">Idea Code</th>
  41.                                         <td class="custom-fields-value">{{ page.product.customFields.custom_product_ideacode|replace({'ideacode': foo}) }}</td>
  42.                                 </tr>
  43.                                 {% set showStatus = false %}
  44.                                 {% for property in page.product.propertyIds %}
  45.                                     {% if property == '0a301fad566c43a78b00ae55471a9991' %}
  46.                                         {% set showStatus = true %}
  47.                                     {% elseif property == 'c5f551d7a5384d2d914493773e4f38e6' %}
  48.                                     {% elseif property == 'e505c83b8eb14b8d903a8bc5510e6511' %}
  49.                                         {% set showStatus = true %}
  50.                                     {% elseif property == '6fe80a8802b142179113e5ee40976380' %}
  51.                                         {% set showStatus = true %}
  52.                                     {% elseif property == '548e1938d6c246b390d6705d6eb6da63' %}
  53.                                     {%  endif %}
  54.                                 {% endfor %}
  55.                                 {% if showStatus == true %}
  56.                                 <tr class="custom-fields-row">
  57.                                         <th class="custom-fields-label">Status</th>
  58.                                         <td class="custom-fields-value">
  59.                                             {% for property in page.product.propertyIds %}
  60.                                                 {% if property == '0a301fad566c43a78b00ae55471a9991' %}
  61.                                                     out of print
  62.                                                 {% elseif property == 'c5f551d7a5384d2d914493773e4f38e6' %}
  63.                                                     published
  64.                                                 {% elseif property == 'e505c83b8eb14b8d903a8bc5510e6511' %}
  65.                                                     not yet published
  66.                                                 {% elseif property == '6fe80a8802b142179113e5ee40976380' %}
  67.                                                     reprinting
  68.                                                 {% elseif property == '548e1938d6c246b390d6705d6eb6da63' %}
  69.                                                     new edition
  70.                                                 {%  endif %}
  71.                                             {% endfor %}
  72.                                         </td>
  73.                                 </tr>
  74.                                 {%  endif %}
  75.                                 {# 'kenmerken' zit nu in custom-field-bottom.html #}
  76.                                 {#<tr class="custom-fields-row">
  77.                                         <td class="custom-fields-value" colspan="2">{{ page.product.customFields.custom_product_details }}</td>
  78.                                 </tr>#}
  79.                             </tbody>
  80.                         </table>
  81.                         <!--
  82.                         {% for property in page.product.propertyIds %}
  83.                             {{ property }}
  84.                         {% endfor %}
  85.                         -->
  86.                     {% endblock %}
  87.                 </div>
  88.             </div>
  89.         {% endblock %}
  90. {% endblock %}