Okay - here goes if anyone can use it.
This is the code for my products_tab.tpl template
The cycle command just alternates between a white and colored background to each row to make it easier to read.
There's an if/then in there that either displays the product thumbnail or a link to an audio sample depending on whether the extra field is empty. If empty it means on my system that this is a full CD so we just want the thumbnail, or if it has an entry it is a single track mp3 download so we want the preview clip link.
I think I've already credited elsewhere the thread on the forum that helped me display the extra field.
I seem to remember different elements in the original products.tpl caused the extra fields to not display so this is very much stripped down to the bare essentials that I need for my store.
Sorry it isn't better commented ..........
Code:
{* $Id: products_tab.tpl,v 1.45.2.12 2005/07/05 05:18:43 mclap Exp $ *}
{if $products}
{section name=product loop=$products}
{assign var="discount" value=0}
<TABLE cellpadding="3" border="0" width="100%">
<TR bgcolor="{cycle values="#EEEEEE,#FFFFFF"}">
<TD valign="middle" align="left">
{$products[product].product}
{$products[product].manufacturer}
</TD>
<TD valign="middle" align="center" width="55">
{* RJS:extra_fields start *}
{assign var="pid" value=$products[product].productid}
{foreach from=$extra_fields[$pid] item=field}
{if $field.field_value ne ""}
[img]{$ImagesDir}/speaker2.gif[/img]
{else}
<A href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}&featured{/if}">
{include file="tab_thumbnail.tpl" productid=$products[product].productid image_x=50}
</A>
{/if}
{/foreach}
{* RJS:extra_fields end *}
</td>
<td valign="middle" align="right" width="55">
{if $products[product].taxed_price ne 0}
<FONT class="ProductPrice">{include file="currency.tpl" value=$products[product].taxed_price}</FONT>
{else}
<FONT class="ProductPrice">{$lng.lbl_enter_your_price}</FONT>
{/if}
</TD>
<td valign="middle" align="center" width="70">
{if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"}
{include file="customer/main/buy_now_tab.tpl" product=$products[product]}
{/if}
</td>
</TR></TABLE>
{/section}
{/if}