{foreach from = $item->list item = sizeRow key = sizeId name = sizeRows}

{$item->category.title|htmlspecialchars}

{foreach from = $sizeRow.groupImage item = imageItem}
{html_image_fs name = $imageItem.image width = 250 height = 250 alt = $imageItem.title title = $imageItem.title itemprop = "image" }
{/foreach}
These In-stock signs are
{$sizeRow.size.sizeTitle|htmlspecialchars}
{assign var = 'countColors' value = $sizeRow.colors|@count} {math assign = 'tdWidth' equation = '100 / (x + 1)' x = $countColors} {foreach from = $sizeRow.colors item = colorId name = productColor} {/foreach} {foreach from = $sizeRow.shapes item = shapeId name = 'row'} {foreach from = $sizeRow.colors item = colorId} {/foreach} {/foreach} {assign var = 'countColors' value = $sizeRow.colors|@count} {math assign = 'tdWidth' equation = '100 / (x + 1)' x = $countColors} {foreach from = $sizeRow.colors item = colorId name = productColor} {/foreach}
{$item->category.colors.$colorId.title}
{html_image_fs name = $item->category.shapes.$shapeId.image width = 125 height = 125 alt = $item->category.shapes.$shapeId.title title = $item->category.shapes.$shapeId.title itemprop = "image" } {assign var = 'product' value = $sizeRow.list.$colorId.$shapeId} {if $product}
${$product.price|money} Buy
{else} — {/if}
 
{if !$smarty.foreach.sizeRows.last}
{/if} {/foreach}