{foreach from = $item->list item = sizeRow key = sizeId name = sizeRows}
{assign var = 'countColors' value = $sizeRow.colors|@count} {math assign = 'tdWidth' equation = '100 / (x + 1)' x = $countColors} {foreach from = $sizeRow.colors item = colorId name = productColor} |
{$item->category.colors.$colorId.title}
|
{/foreach}
{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" } | {foreach from = $sizeRow.colors item = colorId}{assign var = 'product' value = $sizeRow.list.$colorId.$shapeId} {if $product} {else} — {/if} | {/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} |