This is a great mod which I have being using for quite some time, thanks sstillwell !!
I wanted to have the table heading to display the class value instead of the options label, so added a small bit
Full code:
Code:
<!-- Variants table -->
{foreach from=$variants item=v}
{cycle name="classes" values=""}
{foreach from=$v.options item=o}
{/foreach}
{/foreach}
{if $variants}
<table cellspacing="1" cellpadding="0" border="0" class="chart" width="100%">
<tr class="chart_head">
<td>{$lng.lbl_sku}</td>
<td>{$o.class}</td>
<td>{$lng.lbl_our_price}</td>
</tr>
{section name=test loop=$variants}
<tr class="{cycle values="chart_dark,chart_light"}">
<td>{$variants[test].productcode}</td>
{foreach item=item key=key from=$variants[test].options}
<td>{$item.option_name}</td>
{/foreach}
<td>ё{$variants[test].price}</td>
</tr>
{/section}
</table>
<br />
{/if}