Log in
Model

AbstractTotal

Magento\Sales\Model\Order\Total\AbstractTotal

What it does

This is a base class for implementing order total calculation models in Magento 2.

Developers extend this class when creating custom total collectors (like tax, shipping, discounts) that calculate and add amounts to orders.

The class provides a hook to modify the configuration array that controls the order in which different totals are applied.

Public Methods

  • processConfigArray()