Log in
Model

AbstractTotal

Magento\Sales\Model\Order\Total\AbstractTotal

What it does

This abstract base class serves as the foundation for order total calculation models in Magento 2.

Developers extend this class when creating custom total collectors (like subtotal, shipping, tax, discounts) that calculate and aggregate various components of an order's final total.

It provides a hook method to modify the configuration array that controls the order in which totals are calculated.

Public Methods

  • processConfigArray()