custom/plugins/EsmComputer/src/Resources/views/storefront/page/product-detail/buy-details.html.twig line 1

Open in your IDE?
  1. <h3><i class="fas fa-sliders-h"></i>{{ 'detail.productEquipmentHeading'|trans }}</h3>
  2. {{ product.customFields.custom_product_bulletpoints|raw }}
  3. <br/>
  4. <table class="bullet-points">
  5.     <tbody>
  6.     <tr>
  7.         <td>{{ 'detail.productNumber'|trans }}</td>
  8.         <td>{{ product.productNumber }}</td>
  9.     </tr>
  10.     <tr>
  11.         <td>{{ 'general.deliveryShippingTimeLabel'|trans }}</td>
  12.         <td>{{ 'general.deliveryShippingTime'|trans }}</td>
  13.     </tr>
  14.     {% set equipment = product.properties.filterByGroupId(theme_config('sw-equipment-property')).first %}
  15.     {% if equipment %}
  16.         <tr>
  17.             <td>{{ 'detail.equipment'|trans }}</td>
  18.             <td>{{ equipment.name }}</td>
  19.         </tr>
  20.     {% endif %}
  21.     </tbody>
  22. </table>
  23. <br/>
  24. {% set condition = product.properties.filterByGroupId(theme_config('sw-condition-property')).first %}
  25. <table class="bullet-points">
  26.     <tbody>
  27.     {% if condition.name %}
  28.         <tr>
  29.             <td>{{ 'detail.condition'|trans }}</td>
  30.             <td title="{{ condition.name }}">
  31.                 {% sw_include '@Storefront/storefront/component/condition.html.twig' %}
  32.             </td>
  33.         </tr>
  34.     {% endif %}
  35.     </tbody>
  36. </table>
  37. <div class="mt-2">
  38.     {% set klarnaPrice = page.product.calculatedPrice.unitPrice * 100 %}
  39.     {% if page.product.calculatedPrices|length == 1 %}
  40.         {% set klarnaPrice = page.product.calculatedPrices.first.unitPrice * 100%}
  41.     {% endif %}
  42.     <klarna-placement data-key="credit-promotion-badge" data-locale="de-DE" data-purchase-amount="{{ klarnaPrice }}"></klarna-placement>
  43. </div>
  44. {% set co2 = page.extensions.savings.get('co2') %}
  45. {% set water = page.extensions.savings.get('water') %}
  46. {% if co2 > 0 and water > 0 %}
  47.     <div class="product-detail-environment-savings">
  48.         <img src="{{ asset('bundles/esmcomputer/assets/images/esm-ressourcen-sparen.png')|sw_encode_url }}" width="80"  alt="Recycling"/>
  49.         <p>
  50.             <span>{{ "detail.saving_text"|trans({'{{water}}': water, '{{co2}}': co2})|raw }}</span>
  51.             <i class="fas fa-info-circle" title="{{ "detail.saving_tooltip"|trans|raw }}"></i>
  52.         </p>
  53.     </div>
  54. {% endif %}