{% extends 'layout.html.twig' %}
{% block title %}{{ 'service.marketplace'|trans }}{% endblock %}
{% block page_contents %}
<div class="marketplaceWrapper">
{% set displayPrice = null %}
{% set displayPriceVAT = null %}
{% for price in productPriceList %}
{% if price.productId == product.productId %}
{# we get default price level #}
{% if price.priceLevelId == 1 %}
{% set displayPrice = price.nettoValue|round(2, 'ceil') %}
{# {% set displayPrice = price.bruttoValue|round(2, 'ceil') %}#}
{% endif %}
{% endif %}
{% endfor %}
<div class="departmentPath">
<a href="{{ app.request.headers.get('referer') }}" class="pathLink">{{ 'system.back'|trans }}</a>
</div>
<div class="marketplaceProductWrapper">
<div><h1>{{ product.productName }}</h1></div>
<div class="productDetailWrapper">
<div class="productDetailDetail">
<div class="productDetailPrice">{{ displayPrice }} CZK</div>
<div class="productDetailDescription">
{% set productDescription = product.productDescription %}
{{ productDescription|striptags }}
</div>
<div class="productDetailMenu">
<a href="{{ path('root') }}marketplace/product/{{ product.productId }}?redirect_to_eshop={{ product.productLink }}" class="butt_big" target="_blank">{{ 'eshop.enter'|trans }}</a>
</div>
</div>
<div class="productImage">
{% if product.image1 is defined %}
<img src="{{ product.image1 }}" class="marketplaceProductDetailImage" alt="Product Image" border="0">
{% endif %}
</div>
</div>
</div>
<br>
</div>
{% endblock %}