Limit Orders Amount Shown


how do I limit shown orders to for example only from 2018 or last 5 ?

If someone needs then here it is how

need to edit

responsive / templates / views / orders / search.tpl

add (you can change 2 o any number)

{$params = $smarty.request}
{$params.user_id = $auth.user_id}
{$_orders = $params|fn_get_orders:2}


then change

{foreach from=$_orders item="o"}


{foreach from=$_orders.0 item="o"}

If someone know how can I load orders not by needed number but to year, say current year or last 6 months ?