{% sw_extends '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
{% block page_product_detail_buy_container %}
{% if config('DmitsBruttoNetto.config.detailprice') %}
<div class="col-4 float-right">
{{ "dmits.bruttonetto.custom.selecttext"|trans }}
<select class="custom-select change-bruttonetto" data-dmitsbruttonetto="{% if ((context.taxState=='gross') and app.request.cookies.get('dmits-bruttonetto-cookie-value')=='' and app.request.get('showprice')=='') or (app.request.cookies.get('dmits-bruttonetto-cookie-value')=='gross') or (app.request.get('showprice')=='gross') %}gross{%else %}net{% endif %}">
<option value='gross' {% if ((context.taxState=='gross') and app.request.cookies.get('dmits-bruttonetto-cookie-value')=='' and app.request.get('showprice')=='') or (app.request.cookies.get('dmits-bruttonetto-cookie-value')=='gross') or (app.request.get('showprice')=='gross') %}selected{% endif %}>{{ "dmits.bruttonetto.custom.gross"|trans|striptags }}</option>
<option value='net' {% if ((context.taxState=='net') and app.request.cookies.get('dmits-bruttonetto-cookie-value')=='' and app.request.get('showprice')=='') or (app.request.cookies.get('dmits-bruttonetto-cookie-value')=='net') or (app.request.get('showprice')=='net') %}selected{% endif %}>{{ "dmits.bruttonetto.custom.net"|trans|striptags }}</option>
</select>
</div>
{% endif %}
{{ parent() }}
{% endblock %}
{% block page_product_detail_price %}
<div data-tax="{{ page.product.tax.taxRate }}">
{{ parent() }}
</div>
{% endblock %}
{% block page_product_detail_data_rich_snippet_price_range %}
<div data-tax="{{ page.product.tax.taxRate }}">
{{ parent() }}
</div>
{% endblock %}