In Magento how to get the regular price of each product that include tax in the shopping cart?

StackOverflow https://stackoverflow.com/questions/23574290

  •  19-07-2023
  •  | 
  •  

Question

I use this line to get the regular price of the product item in the shopping cart,

$this->helper('checkout')->formatPrice($_item->getProduct()->getPrice());

But I actually want to get the regular price include the tax, any idea how I can get it?

Was it helpful?

Solution

Something like this?

Mage::helper('tax')->getPrice($_item->getProduct(), $_item->getProduct()->getPrice());

See also Magento get price including tax in a none-template file

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top