Smarty->Concatenating variables

in my file, I have this code:

{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}

I want to make it like this, but truncate it to 45:

{if $features.0.name eq "Part  No."}{$features.0.value} -{/if} {$product_manufacturer.name|escape:'htmlall':'UTF-8'} - {$product.name|escape:'htmlall':'UTF-8'}
 

How would I concatenate all those variables to get the value I want and also truncate it to 45?

Capture works brilliantly, plus, I only had to truncate the product_name:


{capture name=full_product}
{if $product.features.0.name eq "Part No."}{$product.features.0.value|trim} - {/if} {$product.manufacturer_name|trim|escape:'htmlall':'UTF-8'} - {$product.name|truncate:30:'...'|escape:'htmlall':'UTF-8'}
{/capture}
        
{$smarty.capture.full_product}