catalog/controller/product/category.php
find
Code: Select all
=> $image,
Code: Select all
'discounts' => $discounts,
Code: Select all
$data['products'][] = array(
Code: Select all
$discounts_data = $this->model_catalog_product->getProductDiscounts($result['product_id']);
$discounts = array();
foreach ($discounts_data as $discount) {
$discounts[] = array(
'quantity' => $discount['quantity'],
'price' => $this->currency->format($this->tax->calculate($discount['price'], $result['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency']));
}
find
Code: Select all
{% if product.rating %}
Code: Select all
{% if product.discounts %}
<ul class="list-unstyled">
{% for product.discounts in discount %}
<li>{{ discount.quantity }} - {{ discount.price }}</li>
{% endfor %}
</ul>
{% endif %}