View Single Post
  #2  
Old 08-13-2004, 11:34 PM
 
twulff twulff is offline
 

Member
  
Join Date: Aug 2004
Posts: 12
 

Default

This is the way I have done it:
Quote:
# changes to product.php
add this code somewhere before the smarty assigns will happen like line #112
#
# Get the real manufacturer
#
$thisManufactorer = $product_info["manufacturerid"];
$manufacturer = func_query("SELECT * FROM $sql_tbl[manufacturers] WHERE manufacturerid = $thisManufactorer");
$smarty->assign("manufacturer", $manufacturer[0]["manufacturer"]);

#changes to customer/main/product.tpl
# where to place the code is up to you
<tr><TD align="left" valign="top">
Producer:

</td>
<TD align="left" valign="top">
{$manufacturer}
<font size=1 face=Arial>(click to get all productions of this producer)</font>

</td>
</tr>

I hope this will help you a little bit
__________________
Thomas
_______________________
X-Cart version 4.0.2 & xaffiliates
PHP 4.1.2
MySQL 3.23.49
Web server Apache
Operation system Debian Linux 3.0
Perl 5.006001
Reply With Quote