{% import 'product/macros.html.twig' as macros %} {% extends 'layouts/print_catalog.html.twig' %} {% do pimcore_head_link().appendStylesheet('https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css',null,null,{integrity:"sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T",crossorigin:"anonymous"}) %} {% block content %}
{% if(product.mainImage) %}
{{ product.mainImage.thumbnail('print_product_detail').getHTML({imgAttributes: {class: 'img-fluid'}})|raw }} {% set additionalImages = product.additionalImages %} {% if(additionalImages) %}
{% for image in additionalImages %}
{{ image.thumbnail('print_product_detail_small').getHTML({imgAttributes: {class: 'img-fluid'}})|raw }}
{% endfor %}
{% endif %}
{% endif %}
{% if(product.manufacturer and product.manufacturer.logo) %} {{ product.manufacturer.logo.thumbnail('print_product_detail_manufacturer').getHTML({imgAttributes: {class: 'img-fluid float-right'}})|raw }} {% endif %}
{{ product.oSName }}
{{ 'general.color' | trans }}
{{ product.color | colorname }}
{% if(product.bodyStyle) %}
{{ 'general.body-style' | trans }}
{{ product.bodyStyle.name }}
{% endif %}
{{ 'general.car-class' | trans }}
{{ ('attribute.' ~ product.carClass) | lower | trans }}
{% if product.saleInformation.saleInformation %}
{{ 'general.condition' | trans }}
{{ ('attribute.' ~ product.saleInformation.saleInformation.condition) | lower | trans}}
{{ 'general.milage' | trans }}
{{ product.saleInformation.saleInformation.milage}}
{% endif %}
{% set priceInfo = product.oSPriceInfo %} {% set price = product.oSPrice %} {% if(priceInfo.hasDiscount) %}
{{ priceInfo.originalPrice }}
{% endif %}
{{ price }}
{% for taxEntry in price.taxEntries %}
{{ taxEntry.entry.name }}: {{ taxEntry.percent }}% ({{ taxEntry.amount.asNumeric | currency(price.currency.shortName) }})
{% endfor %}
{{ 'general.additional-information' | trans }}
{% if(product.description) %}
{{ product.description | raw }}
{% endif %}
{{ 'general.general' | trans }}
{% if(product.manufacturer) %}
{{ 'general.manufacturer' | trans }}
{{ product.manufacturer.name }}
{% endif %} {{ macros.attribute(product.productionYear, 'general.productionYear') }} {% if(product.country) %}
{{ 'general.country' | trans }}
{{ product.country | country }}
{% endif %}
{% if(product.attributes.dimensions or product.attributes.bodywork) %}
{{ 'general.dimensions' | trans }}
{% if(product.attributes.dimensions) %} {{ macros.attribute(product.attributes.dimensions.length, 'general.length') }} {{ macros.attribute(product.attributes.dimensions.width, 'general.width') }} {{ macros.attribute(product.attributes.dimensions.wheelbase, 'general.wheelbase') }} {{ macros.attribute(product.attributes.dimensions.weight, 'general.weight') }} {% endif %} {% if(product.attributes.bodywork) %} {{ macros.attribute(product.attributes.bodywork.numberOfDoors, 'general.numberOfDoors') }} {{ macros.attribute(product.attributes.bodywork.numberOfSeats, 'general.numberOfSeats') }} {% endif %}
{% endif %} {% if(product.attributes.engine or product.attributes.transmission) %}
{{ 'general.engine' | trans }}
{% if(product.attributes.engine) %} {{ macros.attribute(product.attributes.engine.cylinders, 'general.cylinders') }} {{ macros.attribute(product.attributes.engine.capacity, 'general.capacity') }} {{ macros.attribute(product.attributes.engine.power, 'general.power') }} {{ macros.attribute(product.attributes.engine.engineLocation, 'general.engineLocation') }} {% endif %} {% if(product.attributes.transmission) %} {{ macros.attribute(product.attributes.transmission.wheelDrive, 'general.wheelDrive', true, 'attribute.') }} {% endif %}
{% endif %}
{% endblock %}