View Single Post
  #41  
Old 12-08-2006, 12:51 AM
 
dfawdon dfawdon is offline
 

Advanced Member
  
Join Date: Feb 2006
Location: UK
Posts: 82
 

Default Re: Variant chart in product description.

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}
__________________
X-Cart Gold 4.0.17
X-AOM
Safetynet DSEFU
Easy Checkout
_________________
Reply With Quote