{% sw_extends '@Storefront/storefront/component/buy-widget/buy-widget.html.twig' %}
{% block buy_widget_ordernumber_container %}
{{ parent() }}
{% if page.product.customFields.selfdelve_theme_product_base_body != '' %}
{% set categoryId = 'e3efc64461514734934fcde14d3f2048' %}
<div class="product-detail-customfield-basebody-container">
<span class="product-detail-customfield-basebody-label">{{ 'SelfdelveCms.main.product.specialRequestTitle'|trans|sw_sanitize }}</span><br>
<a href="{{ seoUrl('frontend.navigation.page', { navigationId: categoryId }) }}?base_body={{ page.product.customFields.selfdelve_theme_product_base_body }}" title="{{ 'SelfdelveCms.main.product.specialRequestLink'|trans|sw_sanitize }}">
» {{ 'SelfdelveCms.main.product.specialRequestLink'|trans|sw_sanitize }}
</a>
</div>
{% endif %}
{% endblock %}
{% block buy_widget_price %}
{% if (config('SelfdelveCms.config.configuratorCmsPageName') != page.cmsPage.name) %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block buy_widget_tax %}
{% if (config('SelfdelveCms.config.configuratorCmsPageName') != page.cmsPage.name) %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block buy_widget_delivery_informations %}
{% if (config('SelfdelveCms.config.configuratorCmsPageName') != page.cmsPage.name) %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block buy_widget_buy_form %}
{% if (config('SelfdelveCms.config.configuratorCmsPageName') == page.cmsPage.name) %}
<div class="mt-3 mt-md-4 mb-3 bg-light border p-3 shadow-sm" style="max-width: 700px;">
<div class="row">
<div class="col-12 col-md-5">
{# buy_widget_price #}
<div class="product-detail-price-container">
{% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-price.html.twig' %}
</div>
{# buy_widget_tax #}
<div class="product-detail-tax-container">
{% if context.taxState == "gross" %}
{% set taxText = "general.grossTaxInformation"|trans|sw_sanitize %}
{% else %}
{% set taxText = "general.netTaxInformation"|trans|sw_sanitize %}
{% endif %}
<p class="product-detail-tax m-0">
{% block buy_widget_tax_link %}
<a class="product-detail-tax-link"
href="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}"
title="{{ taxText }}"
data-toggle="modal"
data-url="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}">
{{ taxText }}
</a>
{% endblock %}
</p>
</div>
{# buy_widget_delivery_informations #}
<div class="product-detail-delivery-information mt-3 mb-0">
{% sw_include '@Storefront/storefront/component/delivery-information.html.twig' %}
</div>
</div>
<div class="col-12 col-md-7 mt-3 mt-md-0">
{% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-form.html.twig' %}
</div>
</div>
</div>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}