custom/apps/DmitsBruttoNetto/Resources/views/storefront/page/product-detail/buy-widget.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
  2. {% block page_product_detail_buy_container  %}    
  3.     {% if config('DmitsBruttoNetto.config.detailprice') %}
  4.     <div class="col-4 float-right">
  5.         {{  "dmits.bruttonetto.custom.selecttext"|trans }}
  6.         <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 %}">
  7.             <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>
  8.              <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>
  9.         </select>
  10.     </div>
  11.     {% endif %} 
  12.         {{ parent() }}
  13. {% endblock %}
  14. {% block page_product_detail_price  %} 
  15.     <div data-tax="{{ page.product.tax.taxRate }}">
  16.         {{ parent() }}
  17.     </div>
  18. {% endblock %}
  19. {% block page_product_detail_data_rich_snippet_price_range  %} 
  20.     <div data-tax="{{ page.product.tax.taxRate }}">
  21.         {{ parent() }}
  22.     </div>
  23. {% endblock %}