OkayCMS, добавить в списке товаров сортировку по дате добавления
В OkayCMS, добавить в списке товаров сортировку по дате добавления (сначала новые) можно так.
В products_sort.tpl добавлить сортировку по дате добавления таким кодом
<form class="product_sort__form" method="post">
<button type="submit" name="prg_seo_hide" class="d-inline-flex align-items-center product_sort__link {if $sort=='created_asc'} active_up{elseif $sort=='created_desc'} active_down{/if}" value="{if $sort=='created_asc'}{furl sort=created_desc page=null absolute=1}{else}{furl sort=created_asc page=null absolute=1}{/if}">
<span data-language="products_by_created">{$lang->products_by_created}</span>
{include file="svg.tpl" svgId="sort_icon"}
</button>
</form>
Ну и конечно в настройках языка добавить переменную products_by_created