I am facing a problem in which row total of products are not taking special price for some products. I need to check the calculation from where it is calculated.
Anyone who knows the file in which it is calculated.
This value calculated in app\code\core\Mage\Tax\Model\Sales\Total\Quote\Subtotal.php Depends on selected algorithm, it use
protected function _processItem($item, $taxRequest)
{
switch ($this->_config->getAlgorithm($this->_store)) {
case Mage_Tax_Model_Calculation::CALC_UNIT_BASE:
$this->_unitBaseCalculation($item, $taxRequest);
break;
case Mage_Tax_Model_Calculation::CALC_ROW_BASE:
$this->_rowBaseCalculation($item, $taxRequest);
break;
case Mage_Tax_Model_Calculation::CALC_TOTAL_BASE:
$this->_totalBaseCalculation($item, $taxRequest);
break;
default:
break;
}
return $this;
}
So, check the function that is used in your case. Also you can search for this row:
$item->setRowTotalInclTax($taxSubtotal);