 <p>try this</p> <pre><code>$discounts = $this-&gt;model_catalog_product-&gt;getProductDiscounts($product_id); $product_discounts = array(); foreach($discounts as $discount) { $product_discounts = array( 'quantity' =&gt; $discount['quantity'], 'price' =&gt; $this-&gt;currency-&gt;format($this-&gt;tax-&gt;calculate($discount['price'], $product_info['tax_class_id'], $this-&gt;config-&gt;get('config_tax'))) ); } </code></pre>