Log in
Model

AbstractAggregateCalculator

Magento\Tax\Model\Calculation\AbstractAggregateCalculator

What it does

This abstract base class provides the core tax calculation logic for aggregate tax calculations in Magento 2.

It handles calculating taxes both when prices include tax and when they don't, managing discounts, tax compensation amounts, and applying multiple tax rates.

Developers extend this class when implementing custom tax calculation strategies that need to handle complex scenarios like bundled products or multiple tax jurisdictions.