{% sw_extends "@Storefront/storefront/page/product-detail/buy-widget.html.twig" %}
{% block page_product_detail_price %}
{% block page_product_detail_headline %}
{% sw_include '@Storefront/storefront/page/product-detail/headline.html.twig' %}
{% endblock %}
{% block page_product_detail_headline_reviews %}
{% if theme_config('atl-product-detail-reviews') == 'below-title' %}
{% sw_include '@Storefront/storefront/skin/global/page/product-detail/review/reviews.html.twig' %}
{% endif %}
{% endblock %}
{{ parent() }}
{% endblock %}
{% block page_product_detail_tax %}
<div class="product-detail-tax-container">
{% if context.taxState == "gross" %}
{% set taxText = 'atl-katana-theme.general.grossTaxInformation'|trans|sw_sanitize %}
{% else %}
{% set taxText = 'atl-katana-theme.general.netTaxInformation'|trans|sw_sanitize %}
{% endif %}
<p class="product-detail-tax">
{% block page_product_detail_tax_link %}
{{ taxText }}
<a class="product-detail-tax-link"
href="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}"
title="{{ taxText }}"
{{ dataBsToggleAttr }}="modal"
data-url="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}">
{{ 'checkout.summaryShipping'|trans|sw_sanitize }}
</a>
{% endblock %}
</p>
{% block page_product_detail_manufacturer %}
{% if page.product.manufacturer and theme_config('atl-product-detail-manufacturer') == 'default' %}
<p class="product-detail-manufacturer">
{% block page_product_detail_manufacturer_link %}
{% if page.product.manufacturer.media is empty and theme_config('atl-product-detail-manufacturer-layout') == 'logo' or
theme_config('atl-product-detail-manufacturer-layout') == 'text' %}
<span>{{ 'atl-katana-theme.detail.byManufacturer'|trans|sw_sanitize }}</span>
{% endif %}
<a href="{{ page.product.manufacturer.link }}"
class="product-detail-manufacturer-link"
rel="noreferrer noopener"
target="_blank"
title="{{ page.product.manufacturer.translated.name }}">
{% if page.product.manufacturer.media and theme_config('atl-product-detail-manufacturer-layout') == 'logo' %}
{% block page_product_detail_manufacturer_logo %}
<img src="{{ page.product.manufacturer.media|sw_encode_media_url }}"
class="product-detail-manufacturer-logo"
alt="{{ page.product.manufacturer.translated.name }}"/>
{% endblock %}
{% else %}
{% block page_product_detail_manufacturer_text %}
{{ page.product.manufacturer.translated.name }}
{% endblock %}
{% endif %}
</a>
{% endblock %}
</p>
{% endif %}
{% endblock %}
</div>
{% endblock %}
{% block page_product_detail_reviews %}
{% if theme_config('atl-product-detail-reviews') == 'default' %}
{% sw_include '@Storefront/storefront/skin/global/page/product-detail/review/reviews.html.twig' %}
{% endif %}
{% endblock %}
{% block page_product_detail_delivery_informations %}
{% block page_product_detail_features %}
{% sw_include '@Storefront/storefront/skin/global/component/product/features.html.twig' with { 'product': page.product } %}
{% endblock %}
{{ parent() }}
{% endblock %}
{% block page_product_detail_ordernumber_container %}
<div class="product-detail-specifications">
{% if theme_config('atl-product-detail-show-product-number') == 'true' %}
{{ parent() }}
{% endif %}
{% block page_product_detail_ean_container %}
{% if page.product.ean and theme_config('atl-product-detail-show-ean') == 'true' %}
<div class="product-detail-ordernumber-container">
{% block page_product_detail_ean_label %}
<span class="product-detail-ordernumber-label">
{{ 'component.product.feature.label.ean'|trans|sw_sanitize }}
</span>
{% endblock %}
{% block page_product_detail_ean %}
<span class="product-detail-ordernumber"
itemprop="sku">
{{ page.product.ean }}
</span>
{% endblock %}
</div>
{% endif %}
{% endblock %}
{% block page_product_detail_measures_container %}
{% if theme_config('atl-product-detail-measures') != 'hide' %}
{% set width = page.product.width / theme_config('atl-product-detail-measures') %}
{% set height = page.product.height / theme_config('atl-product-detail-measures') %}
{% set length = page.product.length / theme_config('atl-product-detail-measures') %}
{% set unit = 'mm' %}
{% if theme_config('atl-product-detail-measures') == 10 %}
{% set unit = 'cm' %}
{% endif %}
{% if width > 0 or height > 0 or length > 0 %}
<div class="product-detail-measures">
{% block page_product_detail_measures_width %}
{% if width > 0 %}
<div class="product-detail-ordernumber-container">
{{ 'component.product.feature.label.width'|sw_sanitize|trans }} {{ width|number_format(2, ',', '.') }} {{ unit }}
</div>
{% endif %}
{% endblock %}
{% block page_product_detail_measures_height %}
{% if height > 0 %}
<div class="product-detail-ordernumber-container">
{{ 'component.product.feature.label.height'|sw_sanitize|trans }} {{ height|number_format(2, ',', '.') }} {{ unit }}
</div>
{% endif %}
{% endblock %}
{% block page_product_detail_measures_length %}
{% if length > 0 %}
<div class="product-detail-ordernumber-container">
{{ 'component.product.feature.label.length'|sw_sanitize|trans }} {{ length|number_format(2, ',', '.') }} {{ unit }}
</div>
{% endif %}
{% endblock %}
</div>
{% endif %}
{% endif %}
{% endblock %}
{% block page_product_detail_weight_container %}
{% if page.product.weight and theme_config('atl-product-detail-show-weight') == 'true' %}
<div class="product-detail-ordernumber-container">
{% block page_product_detail_weight_label %}
<span class="product-detail-ordernumber-label">
{{ 'component.product.feature.label.weight'|trans|sw_sanitize }}
</span>
{% endblock %}
{% block page_product_detail_weight %}
<span class="product-detail-ordernumber">
{{ page.product.weight|number_format(2, ',', '.') }} kg
</span>
{% endblock %}
</div>
{% endif %}
{% endblock %}
</div>
{% block page_product_detail_collapses %}
{% if theme_config('atl-product-detail-tab-position') == 'buy-box' %}
<div class="cms-collapses">
{% sw_include '@Storefront/storefront/skin/global/page/product-detail/collapses.html.twig' %}
</div>
{% endif %}
{% endblock %}
{% block page_product_detail_share %}
{% if theme_config('atl-product-detail-share') == 'buy-box-end' %}
{% if page.product.parentId %}
{% set productUrl = seoUrl('frontend.detail.page', { productId: page.product.parentId }) %}
{% else %}
{% set productUrl = seoUrl('frontend.detail.page', { productId: page.product.id }) %}
{% endif %}
<div class="product-detail-share">
{% block page_product_detail_share_label %}
<span>{{ "atl-katana-theme.detail.shareLabel"|trans|sw_sanitize }}</span>
{% endblock %}
{% block page_product_detail_share_facebook %}
<a href="https://www.facebook.com/sharer.php?u={{ productUrl }}" title="Facebook" target="_blank" rel="noopener">
{% sw_icon 'facebook' style {
'namespace': 'AtlKatanaTheme',
'pack': theme_config('atl-icon-set'),
'color': 'text-color',
'size': 'sm'
} %}
</a>
{% endblock %}
{% block page_product_detail_share_twitter %}
<a href="https://twitter.com/share?text=1952&url={{ productUrl }}" title="Twitter" target="_blank" rel="noopener">
{% sw_icon 'twitter' style {
'namespace': 'AtlKatanaTheme',
'pack': theme_config('atl-icon-set'),
'color': 'text-color',
'size': 'sm'
} %}
</a>
{% endblock %}
{% block page_product_detail_share_pinterest %}
<a href="https://pinterest.com/pin/create/button/?url={{ productUrl }}" title="Pinterest" target="_blank" rel="noopener">
{% sw_icon 'pinterest' style {
'namespace': 'AtlKatanaTheme',
'pack': theme_config('atl-icon-set'),
'color': 'text-color',
'size': 'sm'
} %}
</a>
{% endblock %}
</div>
{% endif %}
{% endblock %}
{% endblock %}