templates/product/detail_accessory.html.twig line 56

Open in your IDE?
  1. {# @var product \App\Model\Product\AccessoryPart#}
  2. {# @var compatibleTo \Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\ProductList\ProductListInterface #}
  3. {% extends 'product/detail.html.twig' %}
  4. {% block additionalimages %}
  5. {% endblock %}
  6. {% block colorvariants %}
  7. {% endblock %}
  8. {% block detailinfos %}
  9. {% endblock %}
  10. {% block salesinfos %}
  11.     {% if product.saleInformation.saleInformation %}
  12.         <dl class="item-property col-6 mb-0">
  13.             <dt>{{ 'general.condition' | trans }}</dt>
  14.             <dd>{{ ('attribute.' ~ product.saleInformation.saleInformation.condition) | trans}}</dd>
  15.         </dl>
  16.         <dl class="item-property col-6 mb-0">
  17.             <dt>{{ 'general.milage' | trans }}</dt>
  18.             <dd>{{ product.saleInformation.saleInformation.milage }}</dd>
  19.         </dl>
  20.         <dl class="item-property col-6 mb-0">
  21.             <dt>{{ 'general.available-pieces' | trans }}</dt>
  22.             <dd>{{ product.saleInformation.saleInformation.availabilityPieces }}</dd>
  23.         </dl>
  24.     {% endif %}
  25. {% endblock %}
  26. {% block description %}
  27. {% endblock %}
  28. {% block attributes %}
  29. {% endblock %}
  30. {% block productrelations %}
  31.     {%  if(compatibleTo.count) %}
  32.         <div class="mt-5 col-12">
  33.             <h4 class="text-center">{{ 'general.compatibleTo' | trans }}</h4>
  34.             <div class="row">
  35.                 {% for item in compatibleTo %}
  36.                     <div class="col-md-3 d-flex align-items-stretch">
  37.                         {% include 'product/product_teaser.html.twig' with {'product': item} %}
  38.                     </div>
  39.                 {% endfor %}
  40.             </div>
  41.         </div>
  42.     {% endif %}
  43. {% endblock %}