View Single Post
  #4  
Old 09-04-2012, 09:10 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Adding Manufacturer's name to Invoice/Receipt

Ok. In include/func/func.order.php in this function

function func_order_data($orderid)

just before

$products = func_query("SELECT.....

add

// added by CFL Systems
if (!empty($active_modules['Manufacturers'])) {
$join .= " LEFT JOIN $sql_tbl[manufacturers] ON $sql_tbl[manufacturers].manufacturerid = $sql_tbl[products].manufacturerid";
$fields .= ", $sql_tbl[manufacturers].manufacturer";
}

Then you can access it in the template as

{$product.manufacturer}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote