View Single Post
  #34  
Old 11-13-2006, 03:26 AM
 
kevinbrown04 kevinbrown04 is offline
 

Newbie
  
Join Date: May 2006
Posts: 3
 

Default Re: Variant chart in product description.

Hi
Im tring to show a variants table on the product page. I have added the following code to the skin1/customer/main/product.tpl but it doesnt work. Is there any reason this will not work in 4.1.3. I have tried with no luck.


Code:
{if $variants} <table cellspacing="1" cellpadding="0" border="0" class="chart" width="75%"> <tr class="chart_head"> <td>{$lng.lbl_sku}</td> <td>{$lng.lbl_description}</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> {/if}
Would really appriciate any help

Regards

Kevin
__________________
Version 4.1.3
Reply With Quote