Magento, price helper code snippet

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

<?php 
$_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 have enjoyed this post! You may also like:

Sherrie Rohde’s “How to Avoid Burnout While Contributing” presentation will be an eye-opener at Meet Magento Croatia Maja Kardum
, | 0

Sherrie Rohde’s “How to Avoid Burnout While Contributing” presentation will be an eye-opener at Meet Magento Croatia

Zvonimir Buric is a speaker at MM18HR with a Case study: Emma Mattress – Magento on the AWS Cloud and he has a piece of advice for Magento developer wannabes Maja Kardum
, | 0

Zvonimir Buric is a speaker at MM18HR with a Case study: Emma Mattress – Magento on the AWS Cloud and he has a piece of advice for Magento developer wannabes

Custom price filter in Magento Branko Ajzele
Branko Ajzele, | 20

Custom price filter in Magento

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>.