Price by Lowest Qty Discount Price 1.5.x 2.1.5 qphoria row['price'] = ($query->row['discount'] ? $query->row['discount'] : $query->row['price']); ]]> getProductDiscounts($product_id); if ($discounts) { $discount_prices = array(); if ($discounts) { foreach ($discounts as $discount) { if (!$discount['price']) { continue; } else { $discount_prices[] = $discount['price']; } } } if ($discount_prices) { sort($discount_prices); if (isset($this->request->get['route']) && $this->request->get['route'] != 'product/product') { $query->row['price'] = reset($discount_prices); } } } ]]>