tags:

views:

48

answers:

2

Hello, how to exclude from product price tax in template? Thanks for response !

A: 
$rateModel = Mage::getSingleton('tax/calculation_rate')->load($_product->getTaxClassId());
$tax = $rateModel->getRate()+100;
$priceExclTax = ($_product->getPrice()*100)/$tax;
Kamil
And after that we can pass it to currency method
Kamil
A: 

You may have to be careful with that as tax MAY or MAY NOT be included in your calculation. In system/configuration/tax you get to choose if the catalog price includes tax and by default the prices are excluding the tax information.

Elzo Valugi