{foreach from=$products item="product" name="products"}
{if $smarty.foreach.cataloglist.iteration is div by 3 && not $smarty.foreach.cataloglist.last}
{/if}
{if $smarty.foreach.cataloglist.iteration is not div by 3 && $smarty.foreach.cataloglist.last}
{fill_cells index=$smarty.foreach.cataloglist.iteration columns=3}
{/if}
{/foreach}
{include file="templates/pages/catalog/elements/element-product-image.html"}
{include file="templates/pages/catalog/elements/element-product-title.html"}
{include file="templates/pages/catalog/elements/element-product-price.html"}
{include file="templates/pages/catalog/elements/element-product-sale-price.html"}
{include file="templates/pages/catalog/elements/element-product-out-of-stock.html"}
{include file="templates/pages/catalog/elements/element-product-click-to-view.html"}
{include file="templates/pages/catalog/elements/element-product-add.html"}
{include file="templates/pages/catalog/elements/element-product-out-of-stock.html"}
|