Config
Magento\Sales\Model\Config
What it does
This class provides access to sales-related configuration data in Magento 2, specifically for order totals rendering and product type availability.
Developers use it to retrieve total renderers for different areas (frontend/adminhtml), get grouped totals configuration for quotes or orders, and check which product types are available for ordering.
It's commonly used when customizing order/quote total displays or validating product types during checkout.
Public Methods
- getTotalsRenderer()
- getGroupTotals()
- getAvailableProductTypes()