View Single Post
  #4  
Old 03-12-2011, 12:39 PM
 
7thdesire 7thdesire is offline
 

Senior Member
  
Join Date: Sep 2006
Posts: 115
 

Default Re: Manufacturer Name in products_list.tpl

okay use the following

BEFORE in Product.php

PHP Code:
# Assign the current location line
$smarty->assign("location"$location); 

ADD

PHP Code:
$thisManufactorer $product_info["manufacturerid"];  
$manufacturer func_query("SELECT xcart_manufacturers.*, xcart_images_M.image_path, xcart_images_M.filename FROM xcart_manufacturers, xcart_images_M WHERE xcart_manufacturers.manufacturerid = xcart_images_M.id AND manufacturerid = $thisManufactorer");  
$smarty->assign("manufacturer"$manufacturer[0]);  
$smarty->assign("m_image_path"$manufacturer[0]["image_path"]); 


and the following in you template

PHP Code:
{$manufacturer.manufacturer


to show logo and link to manu in product page add the following to the template (extra option)

PHP Code:
<a href="manufacturers.php?manufacturerid={$product.manufacturerid}"> <img src="image.php?id={$product.manufacturerid}&type=M " alt="{$manufacturer}/></a
__________________
X-cart - 4.3.2 loads of mods and custom code
Reply With Quote