Obsługa prezentacji informacji o limicie kredytowym w szablonie Szafir

W tym artykule dowiesz się jak dodać do szablonu Szafir informacje o limicie kredytowym w nagłówku strony.

W tym celu należy zmodyfikować plik common/header/header-top-bar.html.
Przejdź do końca pliku. Ostatnie dwie linijki powinny wyglądać następująco:
</ul>
</div>

Przed nimi należy wstawić następujący kod:
{% if customer.CreditLimit.OverdueUsed > 0 -%}
<li class="f-right-ui">
<div class="label-ui">{{translations.OverduePayments}}:</div>
{{customer.CreditLimit.OverdueUsed}} {{customer.Currency}}
</li>
{% endif -%}
{% if customer.CreditLimit.Left > 0 -%}
<li class="f-right-ui">
<div class="label-ui">{{translations.CreditLeft}}:</div>
{{customer.CreditLimit.Left}} {{customer.Currency}}
</li>
{% endif -%}
{% if customer.CreditLimit.Value > 0 -%}
<li class="f-right-ui">
<div class="label-ui">{{translations.LimitGranted}}:</div>
{{customer.CreditLimit.Value}} {{customer.Currency}}
</li>
{% endif -%}

Czy ten artykuł był pomocny?