everyone!
I need to make the name and description in the product miniatures on 2 lines. So what I did was, I changed templates\catalog_partials\miniatures\product.tpl like so:
{block name='product_name'}
<h3 itemprop="name"><a href="{$product.url}" class="product_name">{$product.name|truncate:45:'...'}</a></h3>
<div class="miniature-description" id="miniature-description">{$product.description_short|truncate:45:''|escape:'html':'UTF-8' nofilter}</div>
{if $product.description_short == ' '}
<div class="miniature-description-2">{$product.description|truncate:45:''|escape:'html':'UTF-8' nofilter}</div>
{/if}
{/block}
This works to some degree, but I want it to always show the first 2 lines no matter how long the description is.
If someone can tell me what I can do to make it work, I would be really grateful.