В контроллере
$data['products'][] = array(
'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('config_product_description_length')) . '..',
'price' => $price,
'special' => $special,
'manufacturer' => $product_info['manufacturer'],
'date_added' => $product_info['date_added'],
'tax' => $tax,
'minimum' => $result['minimum'] > 0 ? $result['minimum'] : 1,
'rating' => $rating,
'href' => $this->url->link('product/product', 'product_id=' . $result['product_id'])
);
В шаблоне
<?php $date_today = new DateTime(); //дата сегодня
$date_product_add = new DateTime($product['date_added']); // дата добавления товара, вместо $product_info, иожет быть и $results и другое
$date_diff = date_diff($date_today, $date_product_add)->days; // разница в днях
?>
<?php if ($date_diff >=0 && $date_diff < 20) { ?>
<div class="ribbon2"><?php echo "new"; ?></div>
<?php } ?>
Вот так делаю.