{% sw_extends '@Storefront/storefront/component/buy-widget/buy-widget.html.twig' %}
{% set SwpSampleOrderSixConfig = config('SwpSampleOrderSix.config') %}
{% block buy_widget_price %}
{{ parent() }}
{# @var product \Shopware\Core\Content\Product\SalesChannel\SalesChannelProductEntity #}
{% set product = page.product %}
{% if SwpSampleOrderSixConfig.channelActive is same as(true)
and product.customFields.sample_order_six_flag == true %}
{% block page_product_detail_price_sample %}
{% if product.extensions.calculatedSamplePrice.unitPrice is empty %}
<div class="product-detail-sample-price">
<span class="product-detail-sample-price-label">
{{ "swp-sampleorder.detail.SamplePriceFree"|trans|sw_sanitize }}
</span>
</div>
{% else %}
<div class="product-detail-sample-price">
<span class="product-detail-sample-price-label">
{{ "swp-sampleorder.detail.SamplePrice"|trans|sw_sanitize }}:
</span>
<span class="product-detail-sample-price-price">
{{ product.extensions.calculatedSamplePrice.unitPrice|currency }}{{ "general.star"|trans|sw_sanitize }}
</span>
</div>
{% endif %}
{% endblock %}
{% endif %}
{% endblock %}