I tried Maffos workaround, by adding
Code:
//Get custom extra field
$mafSQL = "SELECT sValue FROM ".PREFIX."products_fields WHERE pID=".$row['id']." AND fID=34 LIMIT 1";
$mafResult=$db->query($mafSQL);
$mafrs=$mafResult->fetch();
$row['mafExtra']=$mafrs['sValue'];
to toplistings.php in the while loop.
Then I added
Code:
{if $entry.extra<>""}
<td{if $entry.class<>""} class="{$entry.class}"{/if}>{$entry.extra}</td>
{else}
Extras are not working!!!
{/if}
to showlistings.tpl
I get nothing!
I want to just display the two extra fields I have set up on all ad listing pages. Thanks a lot!