custom/plugins/LogBchange/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.     <div class="product-detail-properties">
  4.         {% block page_product_detail_properties_container %}
  5.             <div class="row product-detail-properties-container">
  6.                 <div class="col-12">
  7.                     {% block page_product_detail_properties_table %}
  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.                                 <div class="properties-row">
  12.                                     {% block page_product_detail_properties_item_label %}{% endblock %}
  13.                                     {% block page_product_detail_properties_item_value %}
  14.                                         <div class="properties-value row" style="margin-bottom:1rem; padding-right: 1.25rem; padding-left: 1.25rem; column-gap: 20px;">
  15.                                             {% apply spaceless %}
  16.                                             {% for option in group.options %}
  17.                                                 {% if option.media %}
  18.                                                     <div class="auto" style="padding: 0; text-align: center; ">
  19.                                                         {% if option.media %}
  20.                                                             <div style="width:25px; height:25px; margin: 0 auto;">
  21.                                                                 {% sw_thumbnails 'property-option-img-thumbnails' with {
  22.                                                                                 media: option.media,
  23.                                                                                 sizes: {
  24.                                                                                     'default': '52px'
  25.                                                                                 },
  26.                                                                                 attributes: {
  27.                                                                                     'class': 'product-detail-configurator-option-image',
  28.                                                                                     'alt': option.translated.name,
  29.                                                                                     'title': option.translated.name
  30.                                                                                 }
  31.                                                                             } %}
  32.                                                             </div>
  33.                                                         {% endif %}
  34.                                                         <span style="font-size:12px;">
  35.                                                             {{ option.translated.name|e }}</span>
  36.                                                     </div>
  37.                                                 {% endif %}
  38.                                             {% endfor %}
  39.                                             {% endapply %}
  40.                                         </div>
  41.                                     {% endblock %}
  42.                                 </div>
  43.                             {% endblock %}
  44.                         {% endfor %}
  45.                     {% endblock %}
  46.                 </div>
  47.             </div>
  48.         {% endblock %}
  49.     </div>
  50. {% endblock %}