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 -%}
{{translations.OverduePayments}}:
{{customer.CreditLimit.OverdueUsed}} {{customer.Currency}}
{% endif -%}
{% if customer.CreditLimit.Left > 0 -%}
{{translations.CreditLeft}}:
{{customer.CreditLimit.Left}} {{customer.Currency}}
{% endif -%}
{% if customer.CreditLimit.Value > 0 -%}
{{translations.LimitGranted}}:
{{customer.CreditLimit.Value}} {{customer.Currency}}
{% endif -%}`