{% sw_extends '@Storefront/storefront/component/buy-widget/buy-widget.html.twig' %}
{% block buy_widget_price %}
{% block buy_widget_headline %}
<div class="col product-detail-name-container">
{% block buy_widget_name %}
<h1 class="product-detail-name"
itemprop="name">
{{ product.translated.name }}
</h1>
{% endblock %}
</div>
{% endblock %}
{% block buy_widget_headline_reviews %}
{% if theme_config('atl-product-detail-reviews') == 'below-title' %}
{% sw_include '@Storefront/storefront/skin/global/component/buy-widget/buy-widget-reviews.html.twig' %}
{% endif %}
{% endblock %}
{{ parent() }}
{% endblock %}
{% block buy_widget_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 buy_widget_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 buy_widget_manufacturer %}
{% if product.manufacturer and theme_config('atl-product-detail-manufacturer') == 'default' %}
<p class="product-detail-manufacturer">
{% block buy_widget_manufacturer_link %}
{% if 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="{{ product.manufacturer.link }}"
class="product-detail-manufacturer-link"
rel="noreferrer noopener"
target="_blank"
title="{{ product.manufacturer.translated.name }}">
{% if product.manufacturer.media and theme_config('atl-product-detail-manufacturer-layout') == 'logo' %}
{% block buy_widget_manufacturer_logo %}
<img src="{{ product.manufacturer.media|sw_encode_media_url }}"
class="product-detail-manufacturer-logo"
alt="{{ product.manufacturer.translated.name }}"/>
{% endblock %}
{% else %}
{% block buy_widget_manufacturer_text %}
{{ product.manufacturer.translated.name }}
{% endblock %}
{% endif %}
</a>
{% endblock %}
</p>
{% endif %}
{% endblock %}
</div>
{% endblock %}
{% block buy_widget_reviews %}
{% if theme_config('atl-product-detail-reviews') == 'default' %}
{% sw_include '@Storefront/storefront/skin/global/component/buy-widget/buy-widget-reviews.html.twig' %}
{% endif %}
{% endblock %}
{% block buy_widget_delivery_informations %}
{% block buy_widget_features %}
{% sw_include '@Storefront/storefront/skin/global/component/product/features.html.twig' with { 'product': product } %}
{% endblock %}
{{ parent() }}
{% endblock %}
{% block buy_widget_ordernumber_container %}
<div class="product-detail-specifications">
{% if theme_config('atl-product-detail-show-product-number') == 'true' %}
{{ parent() }}
{% endif %}
{% block buy_widget_ean_container %}
{% if product.ean and theme_config('atl-product-detail-show-ean') == 'true' %}
<div class="product-detail-ordernumber-container">
{% block buy_widget_ean_label %}
<span class="product-detail-ordernumber-label">
{{ 'component.product.feature.label.ean'|trans|sw_sanitize }}
</span>
{% endblock %}
{% block buy_widget_ean %}
<span class="product-detail-ordernumber"
itemprop="sku">
{{ product.ean }}
</span>
{% endblock %}
</div>
{% endif %}
{% endblock %}
{% block buy_widget_measures_container %}
{% if theme_config('atl-product-detail-measures') != 'hide' %}
{% set width = product.width / theme_config('atl-product-detail-measures') %}
{% set height = product.height / theme_config('atl-product-detail-measures') %}
{% set length = 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 buy_widget_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 buy_widget_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 buy_widget_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 buy_widget_weight_container %}
{% if product.weight and theme_config('atl-product-detail-show-weight') == 'true' %}
<div class="product-detail-ordernumber-container">
{% block buy_widget_weight_label %}
<span class="product-detail-ordernumber-label">
{{ 'component.product.feature.label.weight'|trans|sw_sanitize }}
</span>
{% endblock %}
{% block buy_widget_weight %}
<span class="product-detail-ordernumber">
{{ product.weight|number_format(2, ',', '.') }} kg
</span>
{% endblock %}
</div>
{% endif %}
{% endblock %}
</div>
{% block buy_widget_collapses %}
{% if theme_config('atl-product-detail-tab-position') == 'buy-box' %}
<div class="cms-collapses">
{% sw_include '@Storefront/storefront/skin/global/component/product/collapses.html.twig' %}
</div>
{% endif %}
{% endblock %}
{% block buy_widget_share %}
{% if theme_config('atl-product-detail-share') == 'buy-box-end' %}
{% if product.parentId %}
{% set productUrl = seoUrl('frontend.detail.page', { productId: product.parentId }) %}
{% else %}
{% set productUrl = seoUrl('frontend.detail.page', { productId: product.id }) %}
{% endif %}
<div class="product-detail-share">
{% block buy_widget_share_label %}
<span>{{ "atl-katana-theme.detail.shareLabel"|trans|sw_sanitize }}</span>
{% endblock %}
{% block buy_widget_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 buy_widget_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 buy_widget_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 %}