custom/apps/DmitsBruttoNetto/Resources/views/storefront/layout/header/header.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/header/header.html.twig' %}
  2. {% block layout_header_actions_cart %}
  3.     {{ parent() }}
  4.     {% if (config('DmitsBruttoNetto.config.headercard')) and ( controllerName|lower!='checkout') %}
  5.         <div class="col-auto">
  6.     
  7.         
  8.             {{  "dmits.bruttonetto.custom.selecttext"|trans }}
  9.             <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 %}">
  10.                 <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>
  11.                  <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>
  12.             </select>
  13.         </div>
  14.     {% endif %} 
  15. {% endblock %}