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
  •  | 
  •  

문제

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?

도움이 되었습니까?

해결책

Something like this?

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

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top