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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/description.html.twig' %}
  2.             
  3.     {% block page_product_detail_description_container %}
  4.       {{ parent() }}
  5.       <div class="further-description">
  6.         <div class="description-eigenschaften">
  7.           {% for group in page.product.sortedProperties %}
  8.             {% if (group.translated.name == "Alkoholgehalt") %}
  9.                   <div class="properties-row">
  10.                           <strong class="properties-label">{{ group.translated.name|e }}:</strong>
  11.                           <span class="properties-value">
  12.                               {% apply spaceless %}
  13.                                   {% for option in group.options %}
  14.                                       {% set i = ( i | default(0) ) + 1 %}
  15.                                       <span>{% if i > 1 %}, {% endif %}{{ option.translated.name|e }}</span>
  16.                                   {% endfor %}
  17.                               {% endapply %}
  18.                           </span>
  19.                   </div>
  20.                 {% endif %}
  21.           {% endfor %}
  22.           {% for group in page.product.sortedProperties %}
  23.             {% if (group.translated.name == "Herkunftsland") %}
  24.                   <div class="properties-row">
  25.                           <strong class="properties-label">{{ group.translated.name|e }}:</strong>
  26.                           <span class="properties-value">
  27.                               {% apply spaceless %}
  28.                                   {% for option in group.options %}
  29.                                       {% set i = ( i | default(0) ) + 1 %}
  30.                                       <span>{% if i > 1 %}, {% endif %}{{ option.translated.name|e }}</span>
  31.                                   {% endfor %}
  32.                               {% endapply %}
  33.                           </span>
  34.                   </div>
  35.                 {% endif %}
  36.           {% endfor %}
  37.           {% for group in page.product.sortedProperties %}
  38.             {% if  (group.translated.name == "Ursprungsland")%}
  39.                   <div class="properties-row">
  40.                           <strong class="properties-label">{{ group.translated.name|e }}:</strong>
  41.                           <span class="properties-value">
  42.                               {% apply spaceless %}
  43.                                   {% for option in group.options %}
  44.                                       {% set i = ( i | default(0) ) + 1 %}
  45.                                       <span>{% if i > 1 %}, {% endif %}{{ option.translated.name|e }}</span>
  46.                                   {% endfor %}
  47.                               {% endapply %}
  48.                           </span>
  49.                   </div>
  50.                 {% endif %}
  51.           {% endfor %}
  52.           {% for group in page.product.sortedProperties %}
  53.             {% if (group.translated.name == "Lagerung") %}
  54.                   <div class="properties-row">
  55.                           <strong class="properties-label">{{ group.translated.name|e }}:</strong>
  56.                           <span class="properties-value">
  57.                               {% apply spaceless %}
  58.                                   {% for option in group.options %}
  59.                                       {% set i = ( i | default(0) ) + 1 %}
  60.                                       <span>{% if i > 1 %}, {% endif %}{{ option.translated.name|e }}</span>
  61.                                   {% endfor %}
  62.                               {% endapply %}
  63.                           </span>
  64.                   </div>
  65.                 {% endif %}
  66.           {% endfor %}
  67.           <div class="properties-row">
  68.                   <strong class="properties-label">Pfand:</strong>
  69.                   <span class="properties-value">
  70.                     {% if page.product.hasRefund.name %}{{ "refundsystem.general.exclusive"|trans|striptags }} {{ page.product.hasRefund.calculated_price|currency }} {{ "refundsystem.general.refund"|trans|striptags }} {% else %}nein{% endif %}
  71.                   </span>
  72.           </div>
  73.         </div>
  74.         {% for group in page.product.sortedProperties %}
  75.             {% if (group.translated.name == "Bio") %}
  76.                   {% set bio = true %}
  77.                 {% endif %}
  78.           {% endfor %}
  79.         {% if page.product.manufacturer or page.product.customFields.custom_oekokontrollstelle_ %}
  80.         <div class="description-manufacturer">
  81.           {% if page.product.manufacturer %}
  82.             <div class="properties-row">
  83.               <strong>Hersteller:</strong>
  84.               <span>{{ page.product.manufacturer.translated.name }}<br/>{{ page.product.manufacturer.translated.description|raw }}</span>
  85.             </div>
  86.           {% endif %}
  87.          
  88.            {% if page.product.customFields.custom_oekokontrollstelle_ %}
  89.                   <div class="properties-row bio-row">
  90.                           <strong class="properties-label">{{ "wlcustom.oekokontrollstelle"|trans }}:</strong>
  91.                           <span class="properties-value">
  92.                               {% apply spaceless %}
  93.                                {{ page.product.customFields.custom_oekokontrollstelle_ }}
  94.                               {% endapply %}
  95.                           </span>
  96.                   </div>
  97.                  {% endif %}
  98.          
  99.         </div>
  100.         {% endif %}
  101.       </div>
  102.     {% endblock %}
  103.     {% block page_product_detail_description_content_text %}
  104.       {{ parent() }}
  105.       {% if page.product.customFields.custom_zutaten_ %}
  106.         <div class="zutaten">
  107.          <p><strong>Zutaten:</strong></p>
  108.          <p>{{ page.product.customFields.custom_zutaten_ }}</p>
  109.         </div>
  110.       {% endif %}
  111.       {% if page.product.customFields.custom_alergene_ %}
  112.         <div class="zutaten">
  113.          <p><strong>Allergene:</strong></p>
  114.          <p><strong>{{ page.product.customFields.custom_alergene_ }}</strong></p>
  115.         </div>
  116.       {% endif %}
  117.       {% endblock %}
  118. {% block page_product_detail_description_title %}
  119.                 <div class="h3 product-detail-description-title">
  120.                     {{ "detail.descriptionTitle"|trans|sw_sanitize }} {{ page.product.translated.name }}
  121.                 </div>
  122.             {% endblock %}