{% spaceless %}
{% if total is not defined %}
{% set total = 0 %}
{% endif %}
{% if priceSubTotal is not defined %}
{% set priceSubTotal = total %}
{% endif %}
{% if vatPercentTotal is not defined %}
{% set vatPercentTotal = 0 %}
{% endif %}
{% if vatPercent is not defined %}
{% set vatPercent = 0 %}
{% endif %}
{% if priceTotal is not defined %}
{% set priceTotal = 0 %}
{% endif %}
{% if surcharges is defined %}
{% if surcharges is not empty %}
{% for sr in surcharges %}
{% set priceSubTotal = priceSubTotal + sr.total %}
{% endfor %}
{% endif %}
{% endif %}
{% if wicamheader is defined %}
{% set deliveryCost = wicamheader.deliveryCost %}
{% endif %}
{% if deliveryCost is defined %}
{% set priceSubTotal = priceSubTotal + deliveryCost %}
{% endif %}
{% set minimun_vl = 0.0 %}
{% if wicamheader is defined %}
{% if wicamheader.CountActiveWicamFiles > 0 %}
{% if minimun is defined %}
{% if priceSubTotal < minimun %}
{% set minimun_vl = minimun - priceSubTotal %}
{% set priceSubTotal = minimun %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% set vatPercentTotal = priceSubTotal * (vatPercent/100) %}
{% set priceTotal = priceSubTotal + vatPercentTotal %}
{% endspaceless %}
<div class="overview"
id="buybox-mobile-overview"
data-toggler=".hide">
<div class="grid-x grid-padding-x align-middle">
<div class="small-4 cell price">
<div class="price-total">
{{ priceTotal|price|raw(2, ',', '.', true) }}
</div>
</div>
</div>
</div>