View Single Post
  #1  
Old 10-23-2006, 07:42 AM
 
7thdesire 7thdesire is offline
 

Senior Member
  
Join Date: Sep 2006
Posts: 115
 

Default X-Cart 4.1.3 Showing Manufacturer on Product Page

after alot of messing around i found out how todo it


in product.php add

$thisManufactorer = $product_info["manufacturerid"];
$manufacturer = func_query("SELECT * FROM $sql_tbl[manufacturers] WHERE manufacturerid = $thisManufactorer");
$smarty->assign("manufacturer", $manufacturer[0]["manufacturer"]);



and in product.tpl add

{if $manufacturer ne ""}
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td height="70"><div align="center"><A href="manufacturers.php?manufacturerid={$product.m anufacturerid}"> <img src="image.php?id={$product.manufacturerid}&type=M " alt="{$manufacturer}" /></a></div></td>
</tr>
<tr>
<td align="center" valign="middle"></td>
</tr>
</table>
</TD>{/if}




i hope that helps a few of you
__________________
X-cart - 4.3.2 loads of mods and custom code
Reply With Quote