Log in
Model

GuestCartTotalManagement

Magento\Quote\Model\GuestCart\GuestCartTotalManagement

What it does

This class handles cart total calculations for guest customers (non-logged-in users) in Magento 2.

It acts as a bridge between the guest cart's masked ID and the standard cart total management system, allowing guest shoppers to calculate cart totals including shipping and payment methods.

Developers use this when building checkout flows or displaying cart totals for guest customers.

Public Methods

  • collectTotals()