templates/themes/ottcomputer/includes/buybox-wicam-mobile-overview.html.twig line 1

Open in your IDE?
  1. {% spaceless %}
  2.     {% if total is not defined %}
  3.         {% set total = 0 %}
  4.     {% endif %}
  5.     {% if priceSubTotal is not defined %}
  6.         {% set priceSubTotal = total %}
  7.     {% endif %}
  8.     {% if vatPercentTotal is not defined %}
  9.         {% set vatPercentTotal = 0 %}
  10.     {% endif %}
  11.     {% if vatPercent is not defined %}
  12.         {% set vatPercent = 0 %}
  13.     {% endif %}
  14.     {% if priceTotal is not defined %}
  15.         {% set priceTotal = 0 %}
  16.     {% endif %}
  17.     {% if surcharges is defined %}
  18.         {% if surcharges is not empty %}
  19.             {% for sr in surcharges %}
  20.                 {% set priceSubTotal = priceSubTotal + sr.total %}
  21.             {% endfor %}
  22.         {% endif %}
  23.     {% endif %}
  24.     {%  if wicamheader is defined %}
  25.         {% set deliveryCost = wicamheader.deliveryCost %}
  26.     {% endif %}
  27.     {%  if deliveryCost is defined %}
  28.         {% set priceSubTotal = priceSubTotal + deliveryCost %}
  29.     {% endif %}
  30.     {% set minimun_vl = 0.0 %}
  31.     {%  if wicamheader is defined %}
  32.         {% if wicamheader.CountActiveWicamFiles > 0 %}
  33.             {% if minimun is defined %}
  34.                 {% if priceSubTotal < minimun %}
  35.                     {% set minimun_vl =  minimun - priceSubTotal %}
  36.                     {% set priceSubTotal =  minimun %}
  37.                 {% endif %}
  38.             {% endif %}
  39.         {% endif %}
  40.     {% endif %}
  41.     {% set vatPercentTotal = priceSubTotal * (vatPercent/100) %}
  42.     {% set priceTotal = priceSubTotal + vatPercentTotal %}
  43. {% endspaceless %}
  44. <div class="overview"
  45.      id="buybox-mobile-overview"
  46.      data-toggler=".hide">
  47.     <div class="grid-x grid-padding-x align-middle">
  48.         <div class="small-4 cell price">
  49.             <div class="price-total">
  50.                 {{ priceTotal|price|raw(2, ',', '.', true) }}
  51.             </div>
  52.         </div>
  53.     </div>
  54. </div>