I would like to display the product price without tax and the tax amount of a single product from a order in Magento.
I have the item already loaded:
$qty =$item->getData('qty_ordered');
$sku =$item->getSku();
$name =$item->getName();
$tax =$item->getTaxAmount()/$qty;
$price_incl_tax =$item->getPriceInclTax();
$price_excl_tax =$price_incl_tax-$tax;
This is working but I don't think this is a good solution. Is there a easier way without calculating the price in PHP by myself?
Thanks in advance!
Edit: I need this:
$_product = $item->getProduct();
$finalPriceExcludingTax =
Mage::helper('tax') ->getPrice($_product, $_product->getFinalPrice(), false );
usable on ordered items, with the price the customers has payed.