Вот еще один быстрый способ получения общей суммы, включая налоги и без стоимости доставки.
, если вы имеете дело с корзиной:
$quote = Mage::getModel('checkout/session')->getQuote();
$cartGrossTotal = 0;
foreach ($quote->getAllItems() as $item) {
$cartGrossTotal += $item->getPriceInclTax()*$item->getQty();
}
, если вы имеете дело с заказом:
$orderGrossTotal = 0;
foreach ($order->getAllItems() as $item) {
$orderGrossTotal += $item->getPriceInclTax()*$item->getQty();
}