$products_rel = $this->model_catalog_product->getProductRelated($result['product_id']);
$productsRel = array();
foreach ($products_rel as $p_r) {
$productsRel[] = array(
'product_id' => $p_r['product_id'],
);
}
$data['products'][] = array(
'products_rel' => $productsRel,
'product_id' => $result['product_id'],
'thumb' => $image,
'name' => $result['name'],
'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get($this->config->get('config_theme') . '_product_description_length')) . '..',
'price' => $price,
'special' => $special,
'tax' => $tax,
'minimum' => $result['minimum'] > 0 ? $result['minimum'] : 1,
'rating' => $result['rating'],
'href' => $this->url->link('product/product', 'path=' . $this->request->get['path'] . '&product_id=' . $result['product_id'] . $url)
);
}