В общем в контроллере всегда есть набор переменных.
Выглядит обычно так:
$this->data['products'][] = array(
'product_id' => $result['product_id'],
'thumb' => $image,
'name' => $result['name'],
'sku' => (empty($result['sku'])) ? '' : ' '. $result['sku'],
'model' => (empty($result['model'])) ? '' : ' '. $result['model'],
'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',
'tags' => (strip_tags(html_entity_decode($result['tag']))),
'price' => $price,
'price2' => $price2,
'special' => $special,
'tax' => $tax,
'rating' => $result['rating'],
'reviews' => sprintf($this->language->get('text_reviews'), (int)$result['reviews']),
'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'])
);
}
Так вот, если вставляете код вида:
'tags' => (strip_tags(html_entity_decode($result['tag']))),
Где 'tags' ваша переменная, то есть сами дали ей название.
$result['tag'] - там где 'tag' имя столбца, из которого вам нужно значение.
Спасибо всем.