View Single Post
  #7  
Old 08-20-2013, 02:18 AM
 
gozindagi gozindagi is offline
 

Advanced Member
  
Join Date: Jul 2013
Posts: 61
 

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

Quote:
Originally Posted by cflsystems
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}
But this code does not work x-cart-4.6.0platinum,after adding this code my site became blank.Please provide me another code which works at x-cart-4.6.0platinum.
__________________
X-cart Platinum 4.6.0
Reply With Quote