{foreach from=$product_families item="family"}
{$family.name|htmlspecialchars}
{assign var="products" value=$family.products} {if $RecommendedProductsView == "text"}{include file="catalog_text.html"}{/if} {if $RecommendedProductsView == "thumb1"}{include file="catalog_thumb1.html"}{/if} {if $RecommendedProductsView == "thumb2"}{include file="catalog_thumb2.html"}{/if} {if $RecommendedProductsView == "thumb3"}{include file="catalog_thumb3.html"}{/if} {if $RecommendedProductsView == "display"}{include file="catalog_display.html"}{/if} {/foreach}