{{if $nproducts}} {{foreach from=$groups item=row}}   {{$row.group_name}}  {{/foreach}} {{/if}}