{% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
{% block base_main_inner %}
{% block base_main_container %}
{{ parent() }}
{% endblock %}
{% endblock %}
{% block base_breadcrumb %}
<div class="container">
{{ parent() }}
</div>
{% endblock %}
{% block base_content %}
{% block page_product_detail %}
<div class="product-detail"
itemscope
itemtype="https://schema.org/Product">
{% block page_product_detail_inner %}
{% block page_product_detail_content %}
<div class="container">
<div class="product-detail-content">
{% set mediaItems = page.product.media.media %}
{% set nrProductDetailSurcharge = ((page.product.customFields.lvg_fmt_breite_cm * 2 + page.product.customFields.lvg_fmt_hoehe_cm * 2) / 100) * 20 * 3.6 %}
{% set nrProductDetailConfiguratorActiveOptionName = null %}
{% set nrHasFrameCls = '' %}
{% for group in page.configuratorSettings %}
{% for option in group.options %}
{% if option.id in page.product.optionIds %}
{% set nrProductDetailConfiguratorActiveOptionName = option.name %}
{% endif %}
{% endfor %}
{% endfor %}
{% if nrProductDetailConfiguratorActiveOptionName == 'Ohne' %}
{% elseif nrProductDetailConfiguratorActiveOptionName == 'Natur' %}
{% set nrHasFrameCls = 'nr-product-detail-image-framed is-nature' %}
{% elseif nrProductDetailConfiguratorActiveOptionName == 'Schwarz' %}
{% set nrHasFrameCls = 'nr-product-detail-image-framed is-black' %}
{% elseif nrProductDetailConfiguratorActiveOptionName == 'Weiß' %}
{% set nrHasFrameCls = 'nr-product-detail-image-framed is-white' %}
{% elseif nrProductDetailConfiguratorActiveOptionName == 'Gold' %}
{% set nrHasFrameCls = 'nr-product-detail-image-framed is-gold' %}
{% elseif nrProductDetailConfiguratorActiveOptionName == 'Silber' %}
{% set nrHasFrameCls = 'nr-product-detail-image-framed is-silver' %}
{% endif %}
{% block page_product_detail_main %}
<div class="product-detail-main">
{% block page_product_detail_headline %}
<div class="product-detail-headline">
{% sw_include '@Storefront/storefront/page/product-detail/headline.html.twig' %}
</div>
{% endblock %}
{% block page_product_detail_media %}
{% if page.product.cover.media %}
<div class="product-detail-media">
{% set attributes = {
'class': (nrHasFrameCls ? 'nr-product-detail-image ' ~ nrHasFrameCls : 'nr-product-detail-image'),
'id': 'nrProductDetailImage',
'alt': (page.product.cover.media.translated.alt ?: ''),
'title': (page.product.cover.media.translated.title ?: '')
} %}
{% set sizes = {
'md': '1200px'
} %}
{% sw_thumbnails 'nr-product-detail-image-thumbnails' with {
media: page.product.cover.media
} %}
</div>
{% endif %}
{% endblock %}
{% block page_product_detail_buy %}
<div class="product-detail-buy">
{% sw_include '@Storefront/storefront/page/product-detail/buy-widget.html.twig' with {
nrProductDetailSurcharge: nrProductDetailSurcharge,
nrProductDetailConfiguratorActiveOptionName: nrProductDetailConfiguratorActiveOptionName
}%}
</div>
{% endblock %}
<div class="nr-product-detail-info">
<div class="nr-info-separator" aria-hidden="true"></div>
<div class="nr-info-box row no-gutters flex-column-reverse flex-md-row align-items-start">
<div class="nr-box-image col-12 col-md-6 col-xl-8">
<div class="nr-product-detail-room-view">
{# {% if page.product.translated.customFields.nrbn_lvg_product_room_view %}
{% set nrbnLvgProductRoomViewMediaId = page.product.translated.customFields.nrbn_lvg_product_room_view %}
{% set nrbnLvgProductRoomViewMediaCollection = searchMedia([nrbnLvgProductRoomViewMediaId], context.context) %}
{% set nrbnLvgProductRoomViewMedia = nrbnLvgProductRoomViewMediaCollection.get(nrbnLvgProductRoomViewMediaId) %}
{% sw_thumbnails 'nr-room-view-image-thumbnails' with {
media: nrbnLvgProductRoomViewMedia,
attributes: {
'class': 'nr-room-view-image img-fluid',
},
sizes: {
'default': '800px'
}
} %}
<div class="nr-room-view-caption">Beispiel Größenrelation</div>
{% endif %} #}
<img class="nr-room-view-image img-fluid" src="https://www.littlevangogh.de/interface/gen_gallery/gallery_image.php?artworkID={{ page.product.productNumber }}" alt="Room View">
</div>
</div>
<div class="nr-box-content col-12 col-md">
<h2 class="nr-box-title">Daten zum Bild</h2>
<div class="nr-product-detail-properties">
{% if page.product.translated.customFields.lvg_technik %}
<div class="nr-properties-group">
<div class="nr-properties-title">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" width="24" height="24">
<path stroke-linecap="round" stroke-linejoin="round" d="M9.53 16.122a3 3 0 00-5.78 1.128 2.25 2.25 0 01-2.4 2.245 4.5 4.5 0 008.4-2.245c0-.399-.078-.78-.22-1.128zm0 0a15.998 15.998 0 003.388-1.62m-5.043-.025a15.994 15.994 0 011.622-3.395m3.42 3.42a15.995 15.995 0 004.764-4.648l3.876-5.814a1.151 1.151 0 00-1.597-1.597L14.146 6.32a15.996 15.996 0 00-4.649 4.763m3.42 3.42a6.776 6.776 0 00-3.42-3.42" />
</svg>
<div class="nr-properties-name">Technik</div>
</div>
<div class="nr-properties-value">{{ page.product.translated.customFields.lvg_technik }}</div>
</div>
{% endif %}
{% if page.product.translated.customFields.lvg_format %}
<div class="nr-properties-group">
<div class="nr-properties-title">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" width="24" height="24">
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15" />
</svg>
<div class="nr-properties-name">Größe</div>
</div>
<div class="nr-properties-value">{{ page.product.translated.customFields.lvg_format }}</div>
</div>
{% endif %}
</div>
</div>
</div>
<div class="nr-info-separator" aria-hidden="true"></div>
<div class="nr-info-box row no-gutters flex-column-reverse flex-md-row-reverse align-items-start">
<div class="nr-box-image col-12 col-md-6">
<div class="nr-box-image-ratio-1-1">
{% set attributes = {
'class': 'nr-product-detail-manufacturer-image',
'alt': (page.product.manufacturer.media.translated.alt ?: ''),
'title': (page.product.manufacturer.media.translated.title ?: ''),
} %}
{% set sizes = {
} %}
{% sw_thumbnails 'nr-product-detail-manufacturer-image-thumbnails' with {
media: page.product.manufacturer.media,
} %}
</div>
</div>
<div class="nr-box-content col-12 col-md">
<h2 class="nr-box-title">{{ page.product.manufacturer.name }}</h2>
<blockquote class="nr-blockquote">
<svg class="text-primary flex-shrink-0" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path d="M3.01987 24H0L1.43046 10.9377L3.65563 0H9.37748L7.15232 10.9377L3.01987 24ZM17.6424 24H14.6225L16.053 10.9377L18.3576 0H24L21.6954 10.9377L17.6424 24Z" />
</svg>
{{ page.product.manufacturer.customFields.zitat }}
</blockquote>
{% if page.product.manufacturer.customFields.refErfolge and page.product.manufacturer.customFields.refErfahrung and page.product.manufacturer.customFields.refAusbildung and page.product.manufacturer.customFields.refAusstellungen %}
<div class="nr-product-detail-manufacturer-references">
<div class="nr-references-heading h5">Referenzen</div>
<ul class="nr-references-list list-unstyled">
{% set references = [] %}
{% set references = references|merge(page.product.manufacturer.customFields.refErfolge) %}
{% set references = references|merge(page.product.manufacturer.customFields.refErfahrung) %}
{% set references = references|merge(page.product.manufacturer.customFields.refAusbildung) %}
{% set references = references|merge(page.product.manufacturer.customFields.refAusstellungen) %}
{% for reference in references %}
{% if reference.label %}
<li class="nr-references-item">
<svg class="nr-references-icon" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" width="24" height="24">
<path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
<span class="nr-references-title">{{ reference.label }}</span>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}
<div class="">
<a class="nr-product-detail-manufacturer-link" href="{{ page.product.manufacture.link }}">Zum Künstler</a>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
</div>
</div>
{% endblock %}
{% block page_product_detail_cross_selling %}
{% if page.crossSellings.elements is defined and page.crossSellings.elements|filter(item => item.total > 0)|length > 0 %}
<div class="product-detail-cross-selling">
<div class="container">
{% sw_include '@Storefront/storefront/page/product-detail/cross-selling/tabs.html.twig' with {
crossSellings: page.crossSellings
} %}
</div>
</div>
{% endif %}
<div class="product-detail-cross-selling">
<div class="container">
<h2 class="nr-cross-selling-title">Weitere Bilder des Künstlers</h2>
{% sw_include "@Storefront/storefront/element/cms-element-product-slider.html.twig" with {
element: {
'data': {
'products': {
elements: page.product.manufacturer.products
}
},
type: 'product-slider'
}
} %}
</div>
</div>
{% endblock %}
{% endblock %}
</div>
{% endblock %}
{% endblock %}