{foreach from = $item->list item = shapeRow key = shapeId name = shapeRows}

{$shapeRow.groupImage.title|htmlspecialchars}

{math assign = 'imgWidth' equation = 'x / 2' x = $item->config.image.width} {math assign = 'imgHeight' equation = 'x / 2' x = $item->config.image.height} {html_image_fs name = $shapeRow.groupImage.image width = $imgWidth height = $imgHeight method = $item->config.image.resizeMethod alt = $shapeRow.groupImage.title title = $shapeRow.groupImage.title itemprop = "image" }
{assign var = 'countColors' value = $shapeRow.colors|@count} {math assign = 'tdWidth' equation = '100 / (x + 1)' x = $countColors} {foreach from = $shapeRow.colors item = colorId name = productColor} {/foreach} {foreach from = $shapeRow.sizes item = sizeId name = 'row'} {foreach from = $shapeRow.colors item = colorId} {/foreach} {/foreach} {assign var = 'countColors' value = $shapeRow.colors|@count} {math assign = 'tdWidth' equation = '100 / (x + 1)' x = $countColors} {foreach from = $shapeRow.colors item = colorId name = productColor} {/foreach}
{$item->category.colors.$colorId.title}
{$item->category.sizes.$sizeId.title|htmlspecialchars} {assign var = 'product' value = $shapeRow.list.$colorId.$sizeId} {if $product}
${$product.price|money} Buy
{else} — {/if}
 
{if !$smarty.foreach.shapeRows.last}
{/if} {/foreach}