Magento, price helper code snippet

Here is a little code snippet as requested from one of my readers :). Hope you find it useful.

$_coreHelper = $this->helper(’core’);
$_taxHelper = $this->helper(’tax’);
$_finalPriceInclTax = $_taxHelper->getPrice($_product, $_product->getFinalPrice(), true);
$_finalPriceInclTaxNicelyFormated = $_coreHelper->currency($_finalPriceInclTax,true,false);
echo $_finalPriceInclTaxNicelyFormated;

You made it all the way down here so you must enjoyed this post! You may also like:

How Inchoo developed Morris 4x4 Center Jan 29, 2018

How we developed a new Morris 4×4 Center store – case study

/ Leave a comment
Jan 18, 2018

Magento 2 Product Quick View

/ Leave a comment
Nov 03, 2008

Custom price filter in Magento

/ Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <blockquote cite=""> <code> <del datetime=""> <em> <s> <strike> <strong>. You may use following syntax for source code: <pre><code>$current = "Inchoo";</code></pre>.