{{ "now"|date("d.m.Y") }}
{{ model.created_at|date_modify("+180 day")|date("m.d.Y")}}
В базовых шаблонах переменные прописаны следующим образом:
{{ product.price|format_currency('UAH', locale='uk') }}
Чтобы заменить отображение валюты на «грн», достаточно удалить |format_currency('UAH', locale='uk')
и просто вынести «грн» за фигурные скобки:
{{ product.price }} грн
Задаем параметры для создания нужной переменной:
{% set mnths = ['','января','февраля','марта','апреля','мая','июня','июля','августа','сентября','октября','ноября','декабря'] %}
После чего в нужном месте прописываем саму переменную:
{{ model.created_at|date("j") }} {{ mnths[model.created_at|date("n")] }} {{ model.created_at|date("Y") }} г.
{% set gtc = model.grand_total|round(0, 'floor') %}
{% set gtr = model.grand_total * 100 % 100 %}
{{ (gtc|format_number(style="spellout", locale="uk"))|capitalize }}
{% if gtc % 10 == 1 and gtc % 100 != 11 %}
гривня
{% elseif (gtc % 10 == 2 or gtc % 10 == 3 or gtc % 10 == 4) and (gtc % 100 != 12 or gtc % 100 != 13 or gtc % 100 != 14) %}
гривні
{% else %}
гривень
{% endif %}
{{ gtr|format_number(style="spellout", locale="uk") }}
{% if gtc % 10 == 1 and gtc % 100 != 11 %}
копійка
{% elseif (gtc % 10 == 2 or gtc % 10 == 3 or gtc % 10 == 4) and (gtc % 100 != 12 or gtc % 100 != 13 or gtc % 100 != 14) %}
копійки
{% else %}
копійок
{% endif %}