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
2010-03-27 14:43:44
And after that we can pass it to currency method
Kamil
2010-03-27 14:45:28
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
2010-03-29 17:15:21