This is the way it works for me:
In product.php before the smarty assigns
Quote:
$thisManufactorer = $product_info["manufacturerid"];
$manufacturer = func_query("SELECT * FROM $sql_tbl[manufacturers] WHERE manufacturerid = $thisManufactorer");
$smarty->assign("manufacturer", $manufacturer[0]["manufacturer"]);
|
In product.tpl you have to play different positions that you'll like to see it display
You can use this one:
Quote:
<tr><TD align="left" valign="top">
Producer:
</td>
<TD align="left" valign="top">
{$manufacturer}
<font size=1 face=Arial>(click to get all products from this brand)</font>
</td>
</tr>
|
or you can use yours.
Forget about the func.php