День добрый.
Сразу прошу ногами не пинать - я только учусь :)
Есть необходимость добавить мини описание товара в категории.
в category.php
$this->data['products'][] = array(
'product_id' => $result['product_id'],
'thumb' => $image,
'thumbwidth' => $imagewidth,
'thumbheight' => $imageheight,
'name' => $result['name'],
'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 300) . '..',
'description_mini' => html_entity_decode ($result['description_mini']),
'price' => $price,
'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'] . $url)
);
}
в category.tpl добавил по аналогии
html += '<div class="name">' + $(element).find('.name').html() + '</div>';
html += '<div class="desc_mini">' + $(element).find('.description_mini').html() + '</div>';
var price = $(element).find('.price').html();
if (price != null) {
html += '<div class="price">' + price + '</div>';
}
html += '<div class="description">' + $(element).find('.description').html() + '</div>';
в результате хотелось бы получить вывод мини описания а получаю null
Очень буду благодарен за помощь.