Here is what I have tried:
1) In the file /catalog/controller/extension/module/featured.php after the
Code: Select all
$product_info = $this->model_catalog_product->getProduct($product_id);
Code: Select all
$discounts = $this->model_catalog_product->getProductDiscounts($product_id);
$data['discounts'][] = array();
foreach ($discounts as $discount) {
$data['discounts'][] = array(
'quantity' => $discount['quantity'],
'price' => $discount['price']
);
}
Code: Select all
<?php foreach ($discounts as $discount) { ?>
<span>
<?php echo sprintf($text_discount, $discount['quantity'], $discount['price']); ?>
</span><br>
<?php } ?>