Baza wiedzy LINKSPOT › Wygląd sklepu

Obsługa prezentacji informacji o limicie kredytowym w szablonie Szafir

Wygląd sklepu · Opublikowano 2024-11-20

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 -%}`

    + Mam problem z tym tematem Otwórz w portalu bazy wiedzy »