{#
# Project: www.betten-abc.de
# Company: arboro GmbH
# Created by: Daniel Geike
# Created on: 05.07.22
# Description:
#}
{% sw_extends "@Storefront/storefront/page/product-detail/buy-widget.html.twig" %}
{% block page_product_detail_buy_inner %}
{{ parent() }}
{% block page_product_detail_buttons %}
<div class="row product-detail-buttons no-gutters">
{# {% if context.customer is not null and not context.customer.guest ? true : false %} #}
{% block page_product_detail_buttons_wishlist %}
{% if config('core.cart.wishlistEnabled') %}
<div class="col-auto product-detail-button-col product-detail-button-wishlist-col">
{% block page_product_detail_buttons_wishlist_include %}
{{ block("page_product_detail_wishlist", "@Storefront/storefront/page/product-detail/buy-widget.html.twig") }}
{% endblock %}
</div>
{% endif %}
{% endblock %}
{# {% endif %} #}
{% block page_product_detail_buttons_share %}
<div class="col-auto product-detail-button-col product-detail-button-share">
{% block page_product_detail_buttons_share_include %}
{% sw_include "@BettenABC/theme/page/product-detail/buttons/share.html.twig" %}
{% endblock %}
</div>
{% endblock %}
{% block page_product_detail_buttons_reviews %}
{% if config('core.listing.showReview') %}
<div class="col-auto product-detail-button-col product-detail-button-reviews">
{% block page_product_detail_buttons_reviews_include %}
{% sw_include "@BettenABC/theme/page/product-detail/buttons/reviews.html.twig" with {
scrollToElement: true
} %}
{% endblock %}
</div>
{% endif %}
{% endblock %}
</div>
{% endblock %}
{% block page_product_detail_buy_extra_service %}
{% block page_product_detail_buy_extra_service_include %}
{# if product is eligible for extra service, show extra service banner #}
{% if page.product.translated.customFields.custom_product_1|number_format is not same as("500") %}
{% sw_include "@BettenABC/theme/page/product-detail/extra-service/banner.twig" %}
{% endif %}
{% endblock %}
{% endblock %}
{% endblock %}
{% block page_product_detail_price %}
{% block page_product_detail_configurator_top_include %}
{% if page.product.parentId and page.configuratorSettings|length > 0 %}
<div class="product-detail-configurator-container">
{% sw_include '@Storefront/storefront/page/product-detail/configurator.html.twig' %}
</div>
{% endif %}
{% endblock %}
{% block page_product_detail_delivery_information %}
{# klarna on site message #}
<div style="margin-bottom: 16px">
{{ block("klarna_payments_onsite_messaging_definition", "@KlarnaPayment/storefront/page/product-detail/buy-widget.html.twig") }}
</div>
{# delivery information #}
<div class="product-detail-delivery-information">
{% sw_include "@Storefront/storefront/component/delivery-information.html.twig" %}
</div>
{% endblock %}
<div class="product-detail-price-information-container">
{% block page_product_detail_information %}
<div class="col-auto product-detail-information">
{# given for any product, so does not need a condition #}
{% block page_product_detail_number_include %}
{% sw_include "@BettenABC/theme/page/product-detail/number.html.twig" with {
productNumber: page.product.productNumber
} %}
{% endblock %}
{# optional, so a condition is needed #}
{% block page_product_detail_ean_include %}
{% if page.product.ean %}
{% sw_include "@BettenABC/theme/page/product-detail/ean.html.twig" with {
productEan: page.product.ean
} %}
{% endif %}
{% endblock %}
{% block page_product_detail_installment %}
{% endblock %}
</div>
{% endblock %}
<div class="col-auto product-detail-price-col {% if page.product.markAsTopseller %} with-list-price{% endif %}">
{{ parent() }}
</div>
</div>
{% endblock %}
{# remove reviews #}
{% block page_product_detail_reviews %}
{% endblock %}
{# remove order number, because it's shown elsewhere #}
{% block page_product_detail_ordernumber_container %}
{% endblock %}
{# remove configurator, because it's shown elsewhere #}
{% block page_product_detail_configurator_include %}
{% endblock %}
{# remove wishlist button, because it's shown elsewhere #}
{% block page_product_detail_wishlist %}
{% endblock %}
{% block cogi_tags_product_detail_tags %}
{% endblock %}
{% block page_product_detail_delivery_informations %}
{% endblock %}