Magento: How to get product price including tax

Posted by Damodar Bashyal on April 17, 2013

 

For some reason I wasn't getting product price including tax. So after googling around I found this:

$_priceIncludingTax = Mage::helper('tax')->getPrice($_product, $_product->getFinalPrice());

That didn't work for me. So tried this one:

$_priceIncludingTax = Mage::helper('tax')->getPrice($_product, $_product->getPrice(), true);

That didn't work as well for me. After following through above helper I end up using this below code to get product price including tax.

$_priceIncludingTax = Mage::helper('tax')->getPrice($_product, $_product->getPrice(), true, null, null, null, null, false);

I hope this will help someone to get price of a product including GST/tax/VAT whatever you call it. Or, is there a better method in magento?

nik posted on - Monday 11th of November 2013 12:12:37 PM

realy thanks it's working for me.
 
not published on website


QR Code: Magento: How to get product price including tax