Все вроде просмотрел другого контроллера нет, просто почему то в первом случае $manufacturer->id отрабатывает а во втором нет. PrestaShop™ 1.4.5.1:
public function displayProducts()
{
global $currentIndex, $cookie;
if (isset($this->_list['obj']))
{
$nbProducts = sizeof($this->_list['obj']);
echo '<h3>'.$this->_list['message'].' '.$nbProducts.' '.$this->l('found').'</h3>';
if (!$nbProducts)
return ;
$this->fieldsDisplay = (array(
'ID' => array('title' => $this->l('ID')),
'manufacturer' => array('title' => $this->l('Manufacturer')),
'name' => array('title' => $this->l('Name')),
'price' => array('title' => $this->l('Price')),
'tax' => array('title' => $this->l('Tax')),
'stock' => array('title' => $this->l('Stock')),
'weight' => array('title' => $this->l('Weight')),
'status' => array('title' => $this->l('Status')),
'action' => array('title' => $this->l('Actions'))
));
$currency = new Currency(Configuration::get('PS_CURRENCY_DEFAULT'));
echo '
<table class="table" cellpadding="0" cellspacing="0">
<tr>';
foreach ($this->fieldsDisplay AS $field)
echo '<th'.(isset($field['width']) ? 'style="width: '.$field['width'].'"' : '').'>'.$field['title'].'</th>';
echo '
</tr>';
foreach ($this->_list['obj'] AS $k => $prod)
{
$product = new Product((int)($prod['id_product']));
$product->name = $product->name[(int)($cookie->id_lang)];
$manufacturer = new Manufacturer((int)($prod['id_manufacturer']));
$product->product = $product->product[(int)($cookie->id_lang)];
$manufacturer->manufacturer = $manufacturer->manufacturer[(int)($cookie->id_lang)];
/*
//Вариант строки с установкой ссылки.
<td><a href="index.php?tab=AdminManufacturers&id_manufacturer='.$manufacturer->id.'&viewmanufacturer&token='.Tools::getAdminToken('AdminManufacturers'.(int)(Tab::getIdFromClassName('AdminManufacturers')).(int)($cookie->id_employee)).'">'.stripslashes($manufacturer->name).'</a></td>
//Стандартная строка файла
<td>'.($prod['manufacturer_name'] != NULL ? stripslashes($prod['manufacturer_name']) :'--').'</td>
*/
$taxrate = Tax::getProductTaxRate($product->id);
echo '
<tr>
<td>'.$product->id.'</td>
<td><a href="index.php?tab=AdminManufacturers&id_manufacturer='.$manufacturer->id.'&viewmanufacturer&token='.Tools::getAdminToken('AdminManufacturers'.(int)(Tab::getIdFromClassName('AdminManufacturers')).(int)($cookie->id_employee)).'">'.($prod['manufacturer_name'] != NULL ? stripslashes($prod['manufacturer_name']) :'--').' '.$manufacturer->name.'</a></td>
Вместо -- должно появляться имя производителя