Υποκατηγορίες στο category.tpl
![](https://www.digispot.gr/wp-content/uploads/2017/11/prestablog1.jpeg)
<!--tcp-->
<div class="subcategory-grid">
{if isset($subcategories) && count($subcategories) > 0}
{foreach from=$subcategories item=subcategory}
<div class="subcategory">
<a href="/{$subcategory.id_category}-{$subcategory.link_rewrite}">
<img src="{$subcategory.image.bySize.Category_Square.url}" alt="{$subcategory.name|escape:'html':'UTF-8'}" />
<div class="subcategory-caption">{$subcategory.name|escape:'html':'UTF-8'}</div>
</a>
</div>
{/foreach}
{/if}
</div>
<!--tcp-->